edbond (owner)

Revisions

  • 070da9 edbond Mon Feb 16 11:22:01 -0800 2009
gist: 65315 Download_button fork
public
Public Clone URL: git://gist.github.com/65315.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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