secret
Last active

  • Download Gist
article_steps.rb
Ruby
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.