Skip to content

Instantly share code, notes, and snippets.

@psi
Created November 14, 2013 22:35
Show Gist options
  • Save psi/7475527 to your computer and use it in GitHub Desktop.
Save psi/7475527 to your computer and use it in GitHub Desktop.
~/src/se/app/vendor/plugins/master_slave_adapter [master] ⚡ % ruby test/master_slave_adapter_test.rb
oLoaded suite test/master_slave_adapter_test
Started
^R
FFF.F.
Finished in 0.092515 seconds.
1) Failure:
test_insert(MasterSlaveAdapterTest) [test/master_slave_adapter_test.rb:177]:
<ActiveRecord::RecordNotFound> exception expected but none was thrown.
2) Failure:
test_randomized_slaves(MasterSlaveAdapterTest) [test/master_slave_adapter_test.rb:169]:
<false> is not true.
3) Failure:
test_read_from_current(MasterSlaveAdapterTest) [test/master_slave_adapter_test.rb:138]:
<ActiveRecord::RecordNotFound> exception expected but none was thrown.
4) Failure:
test_read_from_slave(MasterSlaveAdapterTest)
[test/master_slave_adapter_test.rb:155:in `block in test_read_from_slave'
/Users/jd/src/se/app/vendor/plugins/master_slave_adapter/lib/active_record/connection_adapters/master_slave_adapter.rb:122:in `with_slave'
/Users/jd/src/se/app/vendor/plugins/master_slave_adapter/lib/active_record/connection_adapters/master_slave_adapter.rb:40:in `with_slave'
test/master_slave_adapter_test.rb:153:in `test_read_from_slave']:
<ActiveRecord::RecordNotFound> exception expected but none was thrown.
6 tests, 13 assertions, 4 failures, 0 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment