app/controllers/admin/post_categories_controller.rb
app/models/post_category
app/test/controllers/admin/post_categories_controller_test.rb
rake test app/test/controllers/admin/post_categories_controller.rb`
1) Error:PostCategoryTest#test_should_not_save_post_category_without_title:ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "admin_post_categories" does not existLINE 1: DELETE FROM "admin_post_categories"
require 'test_helper'
class Admin::PostCategoriesControllerTest < ActionController::TestCase setup do @post_category = post_categories(:one) end
test "should get index" do get :index assert_response :success assert_not_nil assigns(:post_categories) end
test "should get new" do get :new assert_response :success end
test/fixtures/admin/...
test/fixtures/...