diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-03-27 11:55:46 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-03-27 12:00:10 +0100 |
commit | 5bf38ffc4f853a6ccc5812f0ed8341776b117aea (patch) | |
tree | 1d86df1632366b1c05094c135ed44cef49b684d1 /activemodel/test/cases/validations_test.rb | |
parent | 70a4144622d6a43891f43901fec6c05afbd79a3a (diff) | |
download | rails-5bf38ffc4f853a6ccc5812f0ed8341776b117aea.tar.gz rails-5bf38ffc4f853a6ccc5812f0ed8341776b117aea.tar.bz2 rails-5bf38ffc4f853a6ccc5812f0ed8341776b117aea.zip |
require dependency to execute a single test from xml_serialization_test
When the tests are executed in order, the dependency is loaded at the right time.
However this makes it impossible to execute a single test later down the line.
Let's require the dependecy at the beginning to get them working independent of the order.
This resolves the following error:
```
$ ARCONN=postgresql ruby -Itest /Users/senny/Projects/rails/activerecord/test/cases/xml_serialization_test.rb -n test_to_xml
Using postgresql
Run options: -n test_to_xml --seed 51819
E
Finished in 0.081320s, 12.2971 runs/s, 0.0000 assertions/s.
1) Error:
DatabaseConnectedXmlSerializationTest#test_to_xml:
NameError: uninitialized constant DatabaseConnectedXmlSerializationTest::REXML
/Users/senny/Projects/rails/activerecord/test/cases/xml_serialization_test.rb:226:in `test_to_xml'
```
/cc @tgxworld fyi
Diffstat (limited to 'activemodel/test/cases/validations_test.rb')
0 files changed, 0 insertions, 0 deletions