Skip to content

Commit 1090a12

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

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.rubocop_gradual.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
[78, 3, 30, "Gemspec/DependencyVersion: Dependency version specification is required.", 2010339150],
6060
[89, 3, 72, "Gemspec/DependencyVersion: Dependency version specification is required.", 2491072344]
6161
],
62-
"test/test_helper.rb:2707756256": [
63-
[194, 45, 1, "Lint/AssignmentInCondition: Wrap assignment in parentheses if intentional", 177560]
62+
"test/test_helper.rb:2680236708": [
63+
[199, 45, 1, "Lint/AssignmentInCondition: Wrap assignment in parentheses if intentional", 177560]
6464
]
6565
}

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)