Sha256: 43e26934b281dc77fd2b9bbbb8f8311b82545bad76b6a89c12ad89fec3b2688a
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 Bytes
Contents
Given /^the following posts:$/ do |posts| Post.create!(posts.hashes) end When /^I delete the (\d+)(?:st|nd|rd|th) post$/ do |pos| visit posts_path within("table tr:nth-child(#{pos.to_i+1})") do click_link "Destroy" end end Then /^I should see the following posts:$/ do |expected_posts_table| expected_posts_table.diff!(tableish('table tr', 'td,th')) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bobby-0.0.4 | features/step_definitions/post_steps.rb |
bobby-0.0.3 | features/step_definitions/post_steps.rb |