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

Version Path
open_conference_ware-1.0.0.pre4 features/step_definitions/comment_destroy_steps.rb
open_conference_ware-1.0.0.pre3 features/step_definitions/comment_destroy_steps.rb
open_conference_ware-1.0.0.pre2 features/step_definitions/comment_destroy_steps.rb
open_conference_ware-1.0.0.pre1 features/step_definitions/comment_destroy_steps.rb