Permalink
Browse files

Just assign the constant for the module we want directly

  • Loading branch information...
1 parent 7910865 commit 3015cc8370e356fffdfb6720795a65824955359d @alindeman alindeman committed Aug 9, 2013
Showing with 7 additions and 9 deletions.
  1. +7 −9 lib/rspec/rails/adapters.rb
@@ -3,15 +3,13 @@
module RSpec
module Rails
- module Assertions
- if ::Rails::VERSION::STRING >= '4.1.0'
- gem 'minitest'
- require 'minitest/assertions'
- include Minitest::Assertions
- else
- require 'test/unit/assertions'
- include Test::Unit::Assertions
- end
+ if ::Rails::VERSION::STRING >= '4.1.0'
+ gem 'minitest'
+ require 'minitest/assertions'
+ Assertions = Minitest::Assertions
+ else
+ require 'test/unit/assertions'
+ Assertions = Test::Unit::Assertions
end
class AssertionDelegator < Module

0 comments on commit 3015cc8

Please sign in to comment.