Sha256: c5cc91dd9d5417563d0be62768baf98d317ebc51f224a873a97a2caf01a3bd2b

Contents?: true

Size: 1.24 KB

Versions: 19

Compression:

Stored size: 1.24 KB

Contents

require 'test_helper'

class Ocelot::OcelotConvertsControllerTest < ActionController::TestCase
  test "should get index" do
    get :index, {}, admin_user
    assert_response :success
    assert_not_nil assigns(:converts)
  end

  test "should get new" do
    get :new, {}, admin_user
    assert_response :success
  end

  test "should create convert" do
    assert_difference('Convert.count') do
      post :create, { :convert => { :name => 'my next convert', :convert_type => 'convert_type_3' } }, admin_user
    end

    assert_redirected_to ocelot_ocelot_convert_url assigns(:convert)
  end

  test "should show convert" do
    get :show, { :id => converts(:one).to_param }, admin_user
    assert_response :success
  end

  test "should get edit" do
    get :edit, { :id => converts(:one).to_param }, admin_user
    assert_response :success
  end

  test "should update convert" do
    put :update, { :id => converts(:one).to_param, :convert => { } }, admin_user
    assert_redirected_to ocelot_ocelot_convert_url assigns(:convert)
  end

  test "should destroy convert" do
    assert_difference('Convert.count', -1) do
      delete :destroy, { :id => converts(:one).to_param }, admin_user
    end

    assert_redirected_to ocelot_ocelot_converts_url
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
mountain-goat-0.1.8 test/ocelot_converts_controller_test.rb
mountain-goat-0.1.7 test/ocelot_converts_controller_test.rb
mountain-goat-0.1.6 test/ocelot_converts_controller_test.rb
mountain-goat-0.1.5 test/ocelot_converts_controller_test.rb
mountain-goat-0.1.4 test/ocelot_converts_controller_test.rb
mountain-goat-0.1.3 test/ocelot_converts_controller_test.rb
mountain-goat-0.1.2 test/ocelot_converts_controller_test.rb
mountain-goat-0.1.1 test/ocelot_converts_controller_test.rb
mountain-goat-0.1.0 test/ocelot_converts_controller_test.rb
mountain-goat-0.0.20 test/ocelot_converts_controller_test.rb
mountain-goat-0.0.19 test/ocelot_converts_controller_test.rb
mountain-goat-0.0.18 test/ocelot_converts_controller_test.rb
mountain-goat-0.0.17 test/ocelot_converts_controller_test.rb
mountain-goat-0.0.16 test/ocelot_converts_controller_test.rb
mountain-goat-0.0.15 test/ocelot_converts_controller_test.rb
mountain-goat-0.0.14 test/ocelot_converts_controller_test.rb
mountain-goat-0.0.13 test/ocelot_converts_controller_test.rb
mountain-goat-0.0.12 test/ocelot_converts_controller_test.rb
mountain-goat-0.0.11 test/ocelot_converts_controller_test.rb