Sha256: dbf8838ad9d72de4b7dae532df14fb25110cd73dbe86ec3d2892cd998f573075

Contents?: true

Size: 1.54 KB

Versions: 7

Compression:

Stored size: 1.54 KB

Contents

require 'test_helper'

module SeoPages
  class SeoPageDefaultsControllerTest < ActionController::TestCase
    setup do
      @seo_page_default = seo_page_defaults(:one)
    end

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

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

    test "should create seo_page_default" do
      assert_difference('SeoPageDefault.count') do
        post :create, seo_page_default: { meta_description: @seo_page_default.meta_description, meta_keywords: @seo_page_default.meta_keywords, page_title: @seo_page_default.page_title }
      end

      assert_redirected_to seo_page_default_path(assigns(:seo_page_default))
    end

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

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

    test "should update seo_page_default" do
      patch :update, id: @seo_page_default, seo_page_default: { meta_description: @seo_page_default.meta_description, meta_keywords: @seo_page_default.meta_keywords, page_title: @seo_page_default.page_title }
      assert_redirected_to seo_page_default_path(assigns(:seo_page_default))
    end

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

      assert_redirected_to seo_page_defaults_path
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
seo_pages-1.3.2 test/controllers/seo_pages/seo_page_defaults_controller_test.rb
seo_pages-1.3.1 test/controllers/seo_pages/seo_page_defaults_controller_test.rb
seo_pages-1.3.0 test/controllers/seo_pages/seo_page_defaults_controller_test.rb
seo_pages-1.2.1 test/controllers/seo_pages/seo_page_defaults_controller_test.rb
seo_pages-1.2.0 test/controllers/seo_pages/seo_page_defaults_controller_test.rb
seo_pages-1.1.0 test/controllers/seo_pages/seo_page_defaults_controller_test.rb
seo_pages-1.0.1 test/controllers/seo_pages/seo_page_defaults_controller_test.rb