Support reset_pk_sequence! #287

Merged
merged 1 commit into from Feb 25, 2013

Projects

None yet

1 participant

@yahonda
Collaborator
yahonda commented Feb 25, 2013

This pull request addresses following failures reported in rails/rails#7334.
It is because Oracle enhanced adapter does not have reset_pk_sequence! method implemented as postgresql adapter does.

$ ARCONN=oracle ruby -Itest test/cases/associations/inverse_associations_test.rb -n /test_parent_instance_should_be_shared_with_newly_created_child/
Using oracle
Run options: -n /test_parent_instance_should_be_shared_with_newly_created_child/ --seed 30439

# Running tests:

FF

Finished tests in 0.235511s, 8.4922 tests/s, 25.4766 assertions/s.

  1) Failure:
test_parent_instance_should_be_shared_with_newly_created_child(InverseHasOneTests) [test/cases/associations/inverse_associations_test.rb:133]:
Name of man should be the same after changes to parent instance.
Expected: "Bongo"
  Actual: "Steve"

  2) Failure:
test_parent_instance_should_be_shared_with_newly_created_child_via_bang_method(InverseHasOneTests) [test/cases/associations/inverse_associations_test.rb:144]:
Name of man should be the same after changes to parent instance.
Expected: "Bongo"
  Actual: "Steve"

2 tests, 6 assertions, 2 failures, 0 errors, 0 skips
$
@yahonda yahonda merged commit 2982e1f into rsim:rails4 Feb 25, 2013
@yahonda yahonda referenced this pull request Feb 25, 2013
Closed

Support reset_pk_sequence! #283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment