Skip to content

Commit 5bf38ff

Browse files
committed
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
1 parent 70a4144 commit 5bf38ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

activerecord/test/cases/xml_serialization_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require "cases/helper"
2+
require "rexml/document"
23
require 'models/contact'
34
require 'models/post'
45
require 'models/author'

0 commit comments

Comments
 (0)