Skip to content

@emilford /article_steps.rb secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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.