Sha256: 5fe61b19649825813eb4d81468e98f28de364ace9ee60ea834df29e6481bd5c1

Contents?: true

Size: 709 Bytes

Versions: 35

Compression:

Stored size: 709 Bytes

Contents

require File.join(File.dirname(__FILE__), '/../../test_helper')

class Cms::CategoriesControllerTest < ActionController::TestCase
  include Cms::ControllerTestHelper
  
  def setup
    login_as_cms_admin
  end
  
  def test_new_with_no_category_types
    assert_equal 0, CategoryType.count, "This test depends on there being no category types"
    get :new
    assert_response :success
    assert_select "title", "Please Create A Category Type"
  end
  
  def test_new_with_category_types
    Factory(:category_type, :name => "FooCategoryType")
    get :new
    assert_response :success
    assert_select "title", "Content Library / Add New Category"
    assert_select "option", "FooCategoryType"
  end
  
end

Version data entries

35 entries across 35 versions & 11 rubygems

Version Path
browsercms-3.1.0 test/functional/cms/categories_controller_test.rb
we5-browsercms-3.1.0 test/functional/cms/categories_controller_test.rb
browsercms-3.0.6 test/functional/cms/categories_controller_test.rb
browsercms-3.0.5 test/functional/cms/categories_controller_test.rb
we5-browsercms-3.0.5.1 test/functional/cms/categories_controller_test.rb
we5-browsercms-3.0.5 test/functional/cms/categories_controller_test.rb
browsercms_s3-3.0.5 test/functional/cms/categories_controller_test.rb
browsercms-3.0.4 test/functional/cms/categories_controller_test.rb
browsercms-3.0.3 test/functional/cms/categories_controller_test.rb
browsercms_s3-3.0.4 test/functional/cms/categories_controller_test.rb
browsercms_s3-3.0.3 test/functional/cms/categories_controller_test.rb
we5-browsercms-3.0.2 test/functional/cms/categories_controller_test.rb
browsercms-3.0.2 test/functional/cms/categories_controller_test.rb
browsercms-3.0.1 test/functional/cms/categories_controller_test.rb
browsercms-3.0.0 test/functional/cms/categories_controller_test.rb