Skip to content

Commit

Permalink
Fix some MongoMapper tests failing on older versions of the ORM
Browse files Browse the repository at this point in the history
  • Loading branch information
obrie committed Mar 1, 2013
1 parent 7959eaf commit 4f3cf86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/integrations/mongo_mapper_test.rb
Expand Up @@ -192,14 +192,14 @@ def test_should_not_set_initial_state_after_already_initialized
def test_should_persist_initial_state def test_should_persist_initial_state
record = @model.new record = @model.new
record.save record.save
record.reload record = @model.find(record.id)
assert_equal 'parked', record.state assert_equal 'parked', record.state
end end


def test_should_persist_initial_state_on_dup def test_should_persist_initial_state_on_dup
record = @model.create.dup record = @model.create.dup
record.save record.save
record.reload record = @model.find(record.id)
assert_equal 'parked', record.state assert_equal 'parked', record.state
end end


Expand Down Expand Up @@ -272,14 +272,14 @@ def test_should_not_set_initial_state_after_already_initialized
def test_should_persist_initial_state def test_should_persist_initial_state
record = @model.new record = @model.new
record.save record.save
record.reload record = @model.find(record.id)
assert_equal 'parked', record.state assert_equal 'parked', record.state
end end


def test_should_persist_initial_state_on_dup def test_should_persist_initial_state_on_dup
record = @model.create.dup record = @model.create.dup
record.save record.save
record.reload record = @model.find(record.id)
assert_equal 'parked', record.state assert_equal 'parked', record.state
end end


Expand Down

0 comments on commit 4f3cf86

Please sign in to comment.