Skip to content

Commit 3015cc8

Browse files
committed
Just assign the constant for the module we want directly
1 parent 7910865 commit 3015cc8

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

lib/rspec/rails/adapters.rb

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33

44
module RSpec
55
module Rails
6-
module Assertions
7-
if ::Rails::VERSION::STRING >= '4.1.0'
8-
gem 'minitest'
9-
require 'minitest/assertions'
10-
include Minitest::Assertions
11-
else
12-
require 'test/unit/assertions'
13-
include Test::Unit::Assertions
14-
end
6+
if ::Rails::VERSION::STRING >= '4.1.0'
7+
gem 'minitest'
8+
require 'minitest/assertions'
9+
Assertions = Minitest::Assertions
10+
else
11+
require 'test/unit/assertions'
12+
Assertions = Test::Unit::Assertions
1513
end
1614

1715
class AssertionDelegator < Module

0 commit comments

Comments
 (0)