Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View article_steps.rb
1 2 3 4 5 6 7 8 9 10
Then /^I should see abstracts for the last (\d+) articles$/ do |count|
Article.published.newest.limit(count).each do |article|
within("#article-#{article.id}") do
Then %{I should see "#{article.title}"}
And %{I should see "#{article.author.name}"}
And %{I should see "#{article.abstract}"}
And %{I should see "#{article.published_on.to_s(:long)}"}
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.