Permalink
Browse files

Fix some MongoMapper tests failing on older versions of the ORM

  • Loading branch information...
1 parent 7959eaf commit 4f3cf86e0d585c515a63ae0c26c51727abe78a41 @obrie obrie committed Mar 1, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/unit/integrations/mongo_mapper_test.rb
@@ -192,14 +192,14 @@ def test_should_not_set_initial_state_after_already_initialized
def test_should_persist_initial_state
record = @model.new
record.save
- record.reload
+ record = @model.find(record.id)
assert_equal 'parked', record.state
end
def test_should_persist_initial_state_on_dup
record = @model.create.dup
record.save
- record.reload
+ record = @model.find(record.id)
assert_equal 'parked', record.state
end
@@ -272,14 +272,14 @@ def test_should_not_set_initial_state_after_already_initialized
def test_should_persist_initial_state
record = @model.new
record.save
- record.reload
+ record = @model.find(record.id)
assert_equal 'parked', record.state
end
def test_should_persist_initial_state_on_dup
record = @model.create.dup
record.save
- record.reload
+ record = @model.find(record.id)
assert_equal 'parked', record.state
end

0 comments on commit 4f3cf86

Please sign in to comment.