These are chat archives for rails-sqlserver/activerecord-sqlserver-adapter

20th
Jan 2015
Ken Collins
@metaskills
Jan 20 2015 11:08
@sgrif If it was not clear earlier when we talked about the Minivan model. That model has a self.primary_key setting that is not passed down to the Arel::Table.
Ken Collins
@metaskills
Jan 20 2015 12:26
OMG!!!!
So ActiveSupport::TestCase.test_order is mostly useless.
Even when `ActiveSupport::TestCase.test_order = :sorted` is verified.

73 failures, 52 errors, 2 skips
65 failures, 48 errors, 2 skips
63 failures, 49 errors, 2 skips
66 failures, 48 errors, 2 skips
64 failures, 47 errors, 2 skips
If I use the same seed.
$ bundle exec rake test ACTIVERECORD_ONLY=1 TESTOPTS="--seed=63915"

99 failures, 48 errors, 2 skips  --seed 63915
99 failures, 48 errors, 2 skips  --seed 63915
Then I fixed...
Using `.sort` on my ActiveRecord Rake test files helper.

65 failures, 48 errors, 2 skips
65 failures, 48 errors, 2 skips
So I have to sort the cases too! Then test order has impact. So the tests are two fold whack-a-mole
But at least I now know the rule again.
Sean Griffin
@sgrif
Jan 20 2015 14:23
Lol
Yeah, the primary key thing was clear. :)