Skip to content

Commit

Permalink
move test to the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
godfat committed Jul 11, 2012
1 parent e23e183 commit fedf96a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions test/test_attr_hash.rb
Expand Up @@ -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
5 changes: 0 additions & 5 deletions test/test_basic.rb
Expand Up @@ -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

0 comments on commit fedf96a

Please sign in to comment.