spec/models/relationships/belongs_to_spec.rb in ampere-0.1.0 vs spec/models/relationships/belongs_to_spec.rb in ampere-0.1.2

- old
+ new

@@ -86,10 +86,18 @@ @car.save @engine.save end it 'sets belongs_to pointer for has_many relationship' do - pending + @car.passengers = @car.passengers + [@driver] + @car.passengers = @car.passengers + [@passenger] + @car.save + + @driver.reload + @passenger.reload + + @driver.car.should == @car + @passenger.car.should == @car end ### after :all do