Skip to content

Instantly share code, notes, and snippets.

@vipulnsward
Created January 25, 2016 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vipulnsward/0cd9dfb9c98fc69b01f7 to your computer and use it in GitHub Desktop.
Save vipulnsward/0cd9dfb9c98fc69b01f7 to your computer and use it in GitHub Desktop.
➜ activerecord git:(master) ✗ git diff
diff --git a/activerecord/test/cases/reflection_test.rb b/activerecord/test/cases/reflection_test.rb
index a130d9f..710c86b 100644
--- a/activerecord/test/cases/reflection_test.rb
+++ b/activerecord/test/cases/reflection_test.rb
@@ -284,6 +284,7 @@ class ReflectionTest < ActiveRecord::TestCase
@hotel.mocktail_designers << MocktailDesigner.create!
assert_equal 1, @hotel.mocktail_designers.size
+ assert_equal 1, @hotel.mocktail_designers.count
assert_equal 1, @hotel.chef_lists.size
end
➜ activerecord git:(master) ✗ ruby -Itest test/cases/reflection_test.rb -n test_scope_chain_does_not_interfere_with_hmt_with_polymorphic_case_and_sti
/Users/sward/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.11.2/lib/bundler.rb:289: warning: Insecure world writable dir /usr/local/Cellar/rbenv/0.4.0/libexec in PATH, mode 040777
Using sqlite3
Run options: -n test_scope_chain_does_not_interfere_with_hmt_with_polymorphic_case_and_sti --seed 25637
# Running:
.
Finished in 0.081276s, 12.3038 runs/s, 36.9113 assertions/s.
1 runs, 3 assertions, 0 failures, 0 errors, 0 skips
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment