post :create, :redaction => { :title => "Foo", :description => "Description here." }
assert_response :redirect
post :create, :redaction => { :title => "Foo", :description => "Description here." }
assert_response :redirect
post :create, :redaction => { :title => "Foo", :description => "Description here." }
assert_response :forbidden
end
def test_destroy_moderator_empty
post :create, :redaction => { :title => "Foo", :description => "Description here." }
assert_response :forbidden
end
def test_destroy_moderator_empty
delete :destroy, :id => redactions(:example).id
assert_response :forbidden
delete :destroy, :id => redactions(:example).id
assert_response :forbidden
get :edit, :id => redactions(:example).id
assert_response :success
end
def test_edit_non_moderator
get :edit, :id => redactions(:example).id
assert_response :success
end
def test_edit_non_moderator
get :edit, :id => redactions(:example).id
assert_response :redirect
get :edit, :id => redactions(:example).id
assert_response :redirect