Sha256: 1bc840a86306d7f301c9a33905482a33a758d7b9216153707309695fe4881aa8

Contents?: true

Size: 1.36 KB

Versions: 30

Compression:

Stored size: 1.36 KB

Contents

require 'test_helper'

class E9Crm::CampaignTypesControllerTest < ActionController::TestCase
  setup do
    @e9_crm_campaign_type = e9_crm_campaign_types(:one)
  end

  test "should get index" do
    get :index
    assert_response :success
    assert_not_nil assigns(:e9_crm_campaign_types)
  end

  test "should get new" do
    get :new
    assert_response :success
  end

  test "should create e9_crm_campaign_type" do
    assert_difference('E9Crm::CampaignType.count') do
      post :create, :e9_crm_campaign_type => @e9_crm_campaign_type.attributes
    end

    assert_redirected_to e9_crm_campaign_type_path(assigns(:e9_crm_campaign_type))
  end

  test "should show e9_crm_campaign_type" do
    get :show, :id => @e9_crm_campaign_type.to_param
    assert_response :success
  end

  test "should get edit" do
    get :edit, :id => @e9_crm_campaign_type.to_param
    assert_response :success
  end

  test "should update e9_crm_campaign_type" do
    put :update, :id => @e9_crm_campaign_type.to_param, :e9_crm_campaign_type => @e9_crm_campaign_type.attributes
    assert_redirected_to e9_crm_campaign_type_path(assigns(:e9_crm_campaign_type))
  end

  test "should destroy e9_crm_campaign_type" do
    assert_difference('E9Crm::CampaignType.count', -1) do
      delete :destroy, :id => @e9_crm_campaign_type.to_param
    end

    assert_redirected_to e9_crm_campaign_types_path
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
e9_crm-0.1.34 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.33 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.32 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.31 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.30 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.29 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.28 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.27 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.26 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.25 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.24 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.23 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.22 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.21 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.20 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.19 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.18 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.17 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.16 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.14 test/functional/e9_crm/campaign_types_controller_test.rb