[rspec-users] [NoMethodError] simple problem

Andrew WC Brown omen.king at gmail.com
Sun May 27 11:15:42 EDT 2007


I think this test should pass but it doesn't

1)
NoMethodError in 'Person should return full name'
undefined method `full_name?' for #<Person:0x3567964>
./spec/models/person_spec.rb:43:

describe Person do
 it "should return full name" do
    person = Person.new
    person.should be_full_name
  end
end

class Person < ActiveRecord::Base
  def full_name
    true
  end
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070527/18efd0c1/attachment.html 


More information about the rspec-users mailing list