Displaying 1 result from an estimated 1 matches for "bill_spec".
2007 May 03
1
unexpected failures with --reverse
...and_return(@date)
@date.should_receive(:year).and_return(year)
@bill.year.should == year
end
after(:each) do
@bill = nil
@date = nil
end
end
----------
And here is the output when I run the spec using the stock 0.9.2
spec.opts via ''spec -O spec/spec.opts spec/models/bill_spec.rb'' (it
also fails when I run it via ''rake spec:models''):
----------
FFFFFFFFF
1)
NameError in ''Bill should return self.date.year when asked for :year''
undefined method `date'' for class `Bill''
./spec/models/bill_spec.rb:71:
2)
NameErr...