diff options
author | Vít Ondruch <vondruch@redhat.com> | 2016-07-01 15:29:54 +0200 |
---|---|---|
committer | Vít Ondruch <vondruch@redhat.com> | 2016-07-01 15:29:54 +0200 |
commit | 6119a9524ba07031771ed80b79798cc27263979c (patch) | |
tree | c17393f1c4e9b7cae92153575861dc476222d266 /activesupport | |
parent | 49a881e0db1ef64fcbae2b7ddccfd5ccea26ae01 (diff) | |
download | rails-6119a9524ba07031771ed80b79798cc27263979c.tar.gz rails-6119a9524ba07031771ed80b79798cc27263979c.tar.bz2 rails-6119a9524ba07031771ed80b79798cc27263979c.zip |
Do not depend on Rails git repository layout in ActiveSupport tests.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/testing/file_fixtures_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/testing/file_fixtures_test.rb b/activesupport/test/testing/file_fixtures_test.rb index 91b8a9071c..3587c1a4d1 100644 --- a/activesupport/test/testing/file_fixtures_test.rb +++ b/activesupport/test/testing/file_fixtures_test.rb @@ -6,7 +6,7 @@ class FileFixturesTest < ActiveSupport::TestCase test "#file_fixture returns Pathname to file fixture" do path = file_fixture("sample.txt") assert_kind_of Pathname, path - assert_match %r{activesupport/test/file_fixtures/sample.txt$}, path.to_s + assert_match %r{.*/test/file_fixtures/sample.txt$}, path.to_s end test "raises an exception when the fixture file does not exist" do @@ -23,6 +23,6 @@ class FileFixturesPathnameDirectoryTest < ActiveSupport::TestCase test "#file_fixture_path returns Pathname to file fixture" do path = file_fixture("sample.txt") assert_kind_of Pathname, path - assert_match %r{activesupport/test/file_fixtures/sample.txt$}, path.to_s + assert_match %r{.*/test/file_fixtures/sample.txt$}, path.to_s end end |