Sha256: 80fe20029a7f740e95db504c51043a9b5321d3d327abf62c8f14d4eb5a67cdb0

Contents?: true

Size: 1.01 KB

Versions: 21

Compression:

Stored size: 1.01 KB

Contents

require 'test_helper'

module Ems
  class TagsControllerTest < ActionController::TestCase
    setup do
      @tag = tags(:one)
    end
  
    test "should get index" do
      get :index
      assert_response :success
      assert_not_nil assigns(:tags)
    end
  
    test "should get new" do
      get :new
      assert_response :success
    end
  
    test "should create tag" do
      assert_difference('Tag.count') do
        post :create, tag: {  }
      end
  
      assert_redirected_to tag_path(assigns(:tag))
    end
  
    test "should show tag" do
      get :show, id: @tag
      assert_response :success
    end
  
    test "should get edit" do
      get :edit, id: @tag
      assert_response :success
    end
  
    test "should update tag" do
      put :update, id: @tag, tag: {  }
      assert_redirected_to tag_path(assigns(:tag))
    end
  
    test "should destroy tag" do
      assert_difference('Tag.count', -1) do
        delete :destroy, id: @tag
      end
  
      assert_redirected_to tags_path
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ems-0.1.12 test/functional/ems/tags_controller_test.rb
ems-0.1.11 test/functional/ems/tags_controller_test.rb
ems-0.1.10 test/functional/ems/tags_controller_test.rb
ems-0.1.9 test/functional/ems/tags_controller_test.rb
ems-0.1.8 test/functional/ems/tags_controller_test.rb
ems-0.1.7 test/functional/ems/tags_controller_test.rb
ems-0.1.6 test/functional/ems/tags_controller_test.rb
ems-0.1.5 test/functional/ems/tags_controller_test.rb
ems-0.1.4 test/functional/ems/tags_controller_test.rb
ems-0.1.3 test/functional/ems/tags_controller_test.rb
ems-0.1.2 test/functional/ems/tags_controller_test.rb
ems-0.1.1 test/functional/ems/tags_controller_test.rb
ems-0.1.0 test/functional/ems/tags_controller_test.rb
ems-0.0.9 test/functional/ems/tags_controller_test.rb
ems-0.0.8 test/functional/ems/tags_controller_test.rb
ems-0.0.7 test/functional/ems/tags_controller_test.rb
ems-0.0.6 test/functional/ems/tags_controller_test.rb
ems-0.0.5 test/functional/ems/tags_controller_test.rb
ems-0.0.4 test/functional/ems/tags_controller_test.rb
ems-0.0.3 test/functional/ems/tags_controller_test.rb