You'd be much better off using pastie.org to show us the real code that's having the problem, because your example contains all sorts of omissions and typos (which is likely to be the sort of thing that causes your problem!) and it's impossible to tell how much of it is wrong in the original code versus how much was introduced by you rewriting it as an example.
Cheers,
-Tom
_______________________________________________
rspec-users mailing list
rspec...@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
it "should have a status of New Record"
...
Should be
it "should have a status of New Record" do
...
HTH
David
2009/12/14 Tom Stuart <t...@experthuman.com>:
1 |
class Address < ActiveRecord::Base |
1 |
require 'spec_helper' |
undefined method 'status' for #<Hash...>
The problem is that you're setting @address to a hash, not an instance of Address. Did you mean @address = Address.new :business_name => ...?