Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Just assign the constant for the module we want directly

  • Loading branch information...
commit 3015cc8370e356fffdfb6720795a65824955359d 1 parent 7910865
@alindeman alindeman authored
Showing with 7 additions and 9 deletions.
  1. +7 −9 lib/rspec/rails/adapters.rb
View
16 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
Please sign in to comment.
Something went wrong with that request. Please try again.