Skip to content

Commit bfc34b1

Browse files
committed
💚 Support for older Rails
1 parent 8b7a937 commit bfc34b1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/support/active_support/test_case.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
class ActiveSupport::TestCase
2-
self.fixture_paths = [File.expand_path("../../../fixtures", __FILE__)]
2+
# Support for older versions of Rails
3+
if respond_to?(:fixture_path=)
4+
self.fixture_path = [File.expand_path("../../../fixtures", __FILE__)]
5+
else
6+
self.fixture_paths = [File.expand_path("../../../fixtures", __FILE__)]
7+
end
38

49
set_fixture_class accounts: Masq::Account
510
set_fixture_class personas: Masq::Persona

0 commit comments

Comments
 (0)