Sha256: a1bd664a08d6cf083ec9c9138b6bf9121afd90e6a026cfa48cc509e4dfff3710
Contents?: true
Size: 1.32 KB
Versions: 4
Compression:
Stored size: 1.32 KB
Contents
require 'test_helper' class Services::SiteSignupsControllerTest < ActionController::TestCase setup do @site_signup = site_signups(:one) @update = { :email_address => 'test@fluffypaws.co.uk', :name => 'test', :requested_url => 'testsite' } end test "should get index" do get :index assert_response :success assert_not_nil assigns(:site_signups) end test "should get new" do get :new assert_response :success end test "should create site_signup" do assert_difference('SiteSignup.count') do post :create, :site_signup => @site_signup.attributes end assert_redirected_to services_site_signup_path(assigns(:site_signup)) end test "should show site_signup" do get :show, :id => @site_signup.to_param assert_response :success end test "should get edit" do get :edit, :id => @site_signup.to_param assert_response :success end test "should update site_signup" do put :update, :id => @site_signup.to_param, :site_signup => @site_signup.attributes assert_redirected_to services_site_signup_path(assigns(:site_signup)) end test "should destroy site_signup" do assert_difference('SiteSignup.count', -1) do delete :destroy, :id => @site_signup.to_param end assert_redirected_to services_site_signups_path end end
Version data entries
4 entries across 4 versions & 1 rubygems