Skip to content

Commit

Permalink
Just assign the constant for the module we want directly
Browse files Browse the repository at this point in the history
  • Loading branch information
alindeman committed Aug 10, 2013
1 parent 7910865 commit 3015cc8
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions lib/rspec/rails/adapters.rb
Expand Up @@ -3,15 +3,13 @@


module RSpec module RSpec
module Rails module Rails
module Assertions if ::Rails::VERSION::STRING >= '4.1.0'
if ::Rails::VERSION::STRING >= '4.1.0' gem 'minitest'
gem 'minitest' require 'minitest/assertions'
require 'minitest/assertions' Assertions = Minitest::Assertions
include Minitest::Assertions else
else require 'test/unit/assertions'
require 'test/unit/assertions' Assertions = Test::Unit::Assertions
include Test::Unit::Assertions
end
end end


class AssertionDelegator < Module class AssertionDelegator < Module
Expand Down

0 comments on commit 3015cc8

Please sign in to comment.