Re: [rspec-users] Best way to match several attributes of an object?

2010-04-08 Thread Mikel Lindsaar
>> When you need to check several properties of an object, what is the >> best way to match them all? In the mail library I use a custom matcher, which lets me do things like: it "should handle |Minero Aoki |" do address = Mail::Address.new('Minero Aoki ') address.should break_down_to({

[rspec-users] Scaffold views spec failing

2010-04-08 Thread ben rooney
Obviously my noob question was embarrassingly noob - so I was forced to actually do some work and answer my own questions. The answer was that I had to stub out the association - natch... before(:each) do assigns[:tipes] = [ stub_model(Tipe, :name => "value for name",