@@ -63,7 +63,7 @@ def test_generating_without_options
63
63
assert_no_file "config/routes.rb"
64
64
assert_no_file "app/assets/config/bukkits_manifest.js"
65
65
assert_file "test/test_helper.rb" do |content |
66
- assert_match ( /require .+test\/ dummy\/ config\/ environment/ , content )
66
+ assert_match ( /require_relative .+test\/ dummy\/ config\/ environment/ , content )
67
67
assert_match ( /ActiveRecord::Migrator\. migrations_paths.+test\/ dummy\/ db\/ migrate/ , content )
68
68
assert_match ( /Minitest\. backtrace_filter = Minitest::BacktraceFilter\. new/ , content )
69
69
assert_match ( /Rails::TestUnitReporter\. executable = 'bin\/ test'/ , content )
@@ -438,7 +438,7 @@ def test_passing_dummy_path_as_a_parameter
438
438
assert_file "spec/dummy/config/application.rb"
439
439
assert_no_file "test/dummy"
440
440
assert_file "test/test_helper.rb" do |content |
441
- assert_match ( /require .+spec\/ dummy\/ config\/ environment/ , content )
441
+ assert_match ( /require_relative .+spec\/ dummy\/ config\/ environment/ , content )
442
442
assert_match ( /ActiveRecord::Migrator\. migrations_paths.+spec\/ dummy\/ db\/ migrate/ , content )
443
443
end
444
444
end
@@ -449,7 +449,7 @@ def test_creating_dummy_application_with_different_name
449
449
assert_file "spec/fake/config/application.rb"
450
450
assert_no_file "test/dummy"
451
451
assert_file "test/test_helper.rb" do |content |
452
- assert_match ( /require .+spec\/ fake\/ config\/ environment/ , content )
452
+ assert_match ( /require_relative .+spec\/ fake\/ config\/ environment/ , content )
453
453
assert_match ( /ActiveRecord::Migrator\. migrations_paths.+spec\/ fake\/ db\/ migrate/ , content )
454
454
end
455
455
end
0 commit comments