Sha256: d4eff17388ec3d5ee30c081097288477f5089c6e46f49950d7ea124196f844ba
Contents?: true
Size: 400 Bytes
Versions: 4
Compression:
Stored size: 400 Bytes
Contents
Then /^I should be able to destroy (\d+) comments$/ do |count| count = count.to_i if count > 0 page.should have_selector(".proposal-comments a[href]", text: 'Destroy', count: count.to_i) else page.should_not have_selector(".proposal-comments a[href]", text: 'Destroy') end end When /^I destroy a comment$/ do @comment = @proposal.comments.first delete comment_path(@comment) end
Version data entries
4 entries across 4 versions & 1 rubygems