Sha256: 0578f98e615827d37629d26f4006718a38f1b044f7143fa4de62bad0f3f4d027
Contents?: true
Size: 726 Bytes
Versions: 6
Compression:
Stored size: 726 Bytes
Contents
require 'test_helper' module Cms class CategoriesControllerTest < ActionController::TestCase include Cms::ControllerTestHelper def setup given_there_is_a_content_type Cms::Category 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 end
Version data entries
6 entries across 6 versions & 1 rubygems