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.13 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.12 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.11 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.10 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.8 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.7 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.6 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.5 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.4 test/functional/e9_crm/campaign_types_controller_test.rb
e9_crm-0.1.1 test/functional/e9_crm/campaign_types_controller_test.rb