+ def test_new_non_moderator
+ session[:user] = create(:user).id
+
+ get :new
+ assert_response :redirect
+ assert_redirected_to redactions_path
+ end
+
+ def test_create_moderator
+ session[:user] = create(:moderator_user).id
+
+ post :create, :params => { :redaction => { :title => "Foo", :description => "Description here." } }
+ assert_response :redirect
+ assert_redirected_to(redaction_path(Redaction.find_by(:title => "Foo")))
+ end