>> 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({
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",