Guest User

Untitled

a guest
Feb 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. diff --git a/spec/integration/association_spec.rb b/spec/integration/association_spec.rb
  2. index 953338c..bbad032 100644
  3. --- a/spec/integration/association_spec.rb
  4. +++ b/spec/integration/association_spec.rb
  5. @@ -370,6 +370,13 @@ if ADAPTER
  6. Machine.first(:name => 'machine10').should_not be_nil
  7. end
  8.  
  9. + it 'should set and retrieve associations on not yet saved objects' do
  10. + e = Machine.create(:name => 'machine10')
  11. + y = e.areas.build(:name => 'area10')
  12. +
  13. + y.machine.name.should == 'machine10'
  14. + end
  15. +
  16. it 'should convert NULL parent ids into nils' do
  17. Area.first(:name => 'area2').machine.should be_nil
  18. end
Add Comment
Please, Sign In to add comment