We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c67eb34 + e244357 commit 4d5afd6Copy full SHA for 4d5afd6
spec/rspec/active_model/mocks/mock_model_spec.rb
@@ -385,6 +385,7 @@
385
begin
386
require 'minitest/assertions'
387
include Minitest::Assertions
388
+ include MinitestAssertion
389
rescue LoadError
390
require 'test/unit/assertions'
391
include Test::Unit::Assertions
spec/support/minitest_support.rb
@@ -0,0 +1,12 @@
1
+# Minitest requires you provide an assertions ivar for the context
2
+# it is running within. We need this so that ActiveModel::Lint tests
3
+# can successfully be run.
4
+module MinitestAssertion
5
+ def assertions
6
+ @assertions ||= 0
7
+ end
8
+
9
+ def assertions=(value)
10
+ @assertions = value
11
12
+end
0 commit comments