Created
June 14, 2012 23:38
-
-
Save tyrel86/2933672 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe User do | |
before { @user = FactoryGirl.build :user } | |
it "should have a factory ready to test" do | |
@user.should be_valid | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rspec 1 ↵
F
Failures:
Failure/Error: before { @user = FactoryGirl.build :user }
ActiveRecord::StatementInvalid:
Mysql2::Error: Table 'CannaPages_test.users' doesn't exist: SHOW FULL FIELDS FROM
users
./spec/models/user_spec.rb:4:in `block (2 levels) in <top (required)>'
Finished in 0.01193 seconds
1 example, 1 failure
Failed examples:
rspec ./spec/models/user_spec.rb:6 # User should have a factory ready to test