Updated

features/step_definitions / takedown_steps.rb

A
11 lines of codes
0 methods
N/A complexity/method
6 churn
14.0 complexity
0 duplications
When(/^I take down the petition with a reason code "([^"]*)"$/) do |reason_code| click_on 'Take this petition down' select reason_code, :from => :petition_rejection_code click_button "Email petition creator" end Then(/^I should not be able to take down the petition$/) do visit admin_petition_url(@petition) expect(page).to have_no_content("Take this petition down") end