Permalink
Browse files

Consistently use correct Minitest constant

  • Loading branch information...
1 parent a5a04b6 commit 31ba3e5e40a16980b1580d1fac5fa9acf7588e15 @vanstee vanstee committed with alindeman Jul 25, 2013
@@ -48,8 +48,8 @@ def #{method}(*args, &block)
end
end
- # MiniTest::Unit::LifecycleHooks
- module MiniTestLifecycleAdapter
+ # Minitest::Test::LifecycleHooks
+ module MinitestLifecycleAdapter
extend ActiveSupport::Concern
included do |group|
@@ -7,7 +7,7 @@ module Rails
module RailsExampleGroup
extend ActiveSupport::Concern
include RSpec::Rails::SetupAndTeardownAdapter
- include RSpec::Rails::MiniTestLifecycleAdapter if ::Rails::VERSION::STRING >= '4'
+ include RSpec::Rails::MinitestLifecycleAdapter if ::Rails::VERSION::STRING >= '4'
include RSpec::Rails::TestUnitAssertionAdapter
include RSpec::Rails::Matchers
end
@@ -4,7 +4,7 @@ module Rails
module FixtureSupport
extend ActiveSupport::Concern
include RSpec::Rails::SetupAndTeardownAdapter
- include RSpec::Rails::MiniTestLifecycleAdapter if ::ActiveRecord::VERSION::STRING > '4'
+ include RSpec::Rails::MinitestLifecycleAdapter if ::ActiveRecord::VERSION::STRING > '4'
include RSpec::Rails::TestUnitAssertionAdapter
include ActiveRecord::TestFixtures
@@ -18,11 +18,11 @@
end
end
- it "does not expose internal methods of MiniTest" do
+ it "does not expose internal methods of Minitest" do
methods.should_not include("_assertions")
end
- it "does not expose MiniTest's message method" do
+ it "does not expose Minitest's message method" do
methods.should_not include("message")
end
end
@@ -1,10 +1,10 @@
require "spec_helper"
-describe RSpec::Rails::MiniTestLifecycleAdapter do
+describe RSpec::Rails::MinitestLifecycleAdapter do
it "invokes minitest lifecycle hooks at the appropriate times" do
invocations = []
- example_group = RSpec::Core::ExampleGroup.describe("MiniTestHooks") do
- include RSpec::Rails::MiniTestLifecycleAdapter
+ example_group = RSpec::Core::ExampleGroup.describe("MinitestHooks") do
+ include RSpec::Rails::MinitestLifecycleAdapter
define_method(:before_setup) { invocations << :before_setup }
define_method(:after_setup) { invocations << :after_setup }

0 comments on commit 31ba3e5

Please sign in to comment.