diff --git a/test/test_attr_hash.rb b/test/test_attr_hash.rb index 3a7922e..8b4e799 100644 --- a/test/test_attr_hash.rb +++ b/test/test_attr_hash.rb @@ -45,4 +45,9 @@ def simple_case hh, ah apple2.update_attributes :name => 'pineapple' apple2.updated_at.should.not.equal 0 end + + should 'before save' do + p = Pineapple.create(:size => 5) + Pineapple.find(p.id).size.should.equal 10 + end end diff --git a/test/test_basic.rb b/test/test_basic.rb index 76f1931..a42cf6a 100644 --- a/test/test_basic.rb +++ b/test/test_basic.rb @@ -92,9 +92,4 @@ def require_relative path Dog.cerealize_option.should.equal mood.merge(hook) BigDog.cerealize_option.should.equal mood.merge(hook) end - - should 'before save' do - p = Pineapple.create(:size => 5) - Pineapple.find(p.id).size.should.equal 10 - end end