session_for(create(:moderator_user))
post redactions_path(:redaction => { :title => "Foo", :description => "Description here." })
session_for(create(:moderator_user))
post redactions_path(:redaction => { :title => "Foo", :description => "Description here." })
session_for(create(:user))
post redactions_path(:redaction => { :title => "Foo", :description => "Description here." })
session_for(create(:user))
post redactions_path(:redaction => { :title => "Foo", :description => "Description here." })
create(:old_node, :redaction => redaction)
delete redaction_path(:id => redaction)
create(:old_node, :redaction => redaction)
delete redaction_path(:id => redaction)
assert_redirected_to(redaction_path(redaction))
assert_match(/^Redaction is not empty/, flash[:error])
end
assert_redirected_to(redaction_path(redaction))
assert_match(/^Redaction is not empty/, flash[:error])
end
redaction = create(:redaction)
put redaction_path(:id => redaction, :redaction => { :title => "Foo", :description => "Description here." })
redaction = create(:redaction)
put redaction_path(:id => redaction, :redaction => { :title => "Foo", :description => "Description here." })
redaction = create(:redaction)
put redaction_path(:id => redaction, :redaction => { :title => "Foo", :description => "Description here." })
redaction = create(:redaction)
put redaction_path(:id => redaction, :redaction => { :title => "Foo", :description => "Description here." })