Skip to content

Conversation

@coralieco
Copy link

We are testing the todays_posts method from the model Dashboard here.

We should then call todays_posts on dashboard, not posts.
So the RSpec expectations in this test should be:

+ expect(dashboard.todays_posts).to eq posts_published_today
- expect(dashboard.posts).to eq posts_published_today

We could also rename the test as

+ describe "#todays_posts"
- describe "#posts"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants