Sha256: 6143b16dc7a31e27b184e018080470abba6ce1948096c1fd1e0d6f5cb46285ea
Contents?: true
Size: 415 Bytes
Versions: 51
Compression:
Stored size: 415 Bytes
Contents
require 'test_helper' module Admin class CategoriesControllerTest < ActionController::TestCase fixtures :all test 'it should properly build and create resources' do post :create, category: {name: 'Songs'} category = Category.find_by_name 'Songs' assert_redirected_to admin_category_url category response = get :index assert_match /Songs/, response.body end end end
Version data entries
51 entries across 51 versions & 1 rubygems