Sha256: 5e4a6bc8dd3395dade036d397976fa4d56f53f3fbe621ff439119830ae8b4a86

Contents?: true

Size: 1.22 KB

Versions: 34

Compression:

Stored size: 1.22 KB

Contents

require 'test_helper'

class MetaTagsControllerTest < ActionController::TestCase
  setup do
    @meta_tag = meta_tags(:one)
  end

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

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

  test "should create meta_tag" do
    assert_difference('MetaTag.count') do
      post :create, meta_tag: { description: @meta_tag.description, meta_tags: @meta_tag.meta_tags, title: @meta_tag.title, url: @meta_tag.url }
    end

    assert_redirected_to meta_tag_path(assigns(:meta_tag))
  end

  test "should show meta_tag" do
    get :show, id: @meta_tag
    assert_response :success
  end

  test "should get edit" do
    get :edit, id: @meta_tag
    assert_response :success
  end

  test "should update meta_tag" do
    patch :update, id: @meta_tag, meta_tag: { description: @meta_tag.description, meta_tags: @meta_tag.meta_tags, title: @meta_tag.title, url: @meta_tag.url }
    assert_redirected_to meta_tag_path(assigns(:meta_tag))
  end

  test "should destroy meta_tag" do
    assert_difference('MetaTag.count', -1) do
      delete :destroy, id: @meta_tag
    end

    assert_redirected_to meta_tags_path
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
keppler-2.1.22 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.21 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.20 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.19 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.18 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.17 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.16 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.15 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.14 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.13 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.12 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.11 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.10 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.9 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.8 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.7 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.6 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.5 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.4 installer/core/test/controllers/meta_tags_controller_test.rb
keppler-2.1.3 installer/core/test/controllers/meta_tags_controller_test.rb