Created
February 16, 2009 19:22
-
-
Save edbond/65315 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
| Loading test environment (Rails 2.2.2) | |
| >> User.last | |
| => #<User id: 4, login: "philo", first_name: "Philo", last_name: "Farnsworth", email: "philo@example.com", crypted_password: "2efc05636ee04f5f43946c70bcb3226d01a51c6a", salt: "da4b9237bacccdf19c0760cab7aec4a8359010b0", created_at: "2009-02-15 19:20:07", updated_at: "2009-02-16 19:20:07", remember_token: nil, remember_token_expires_at: nil, activation_code: "1b6453892473a467d07372d45eb05abc2031647a", activated_at: "2009-02-14 19:20:07", state: "active", deleted_at: nil, company_name: "Hotmail", address: nil, zip: nil, city: nil, company_phone: nil, phone: nil> | |
| >> User.last.affiliate_account | |
| => nil | |
| >> require 'spec' | |
| => true | |
| >> require 'spec/rails' | |
| => true | |
| >> User.last.affiliate_account.should_not be_nil | |
| NameError: undefined local variable or method `be_nil' for #<Object:0xb7d5b954> | |
| from (irb):5 | |
| from /usr/lib/ruby/gems/1.8/gems/dchelimsky-rspec-rails-1.1.99.6/lib/spec/rails/matchers/include_text.rb:17 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment