Permalink
Browse files

Update class names to keep up with MiniTest::Rails

  • Loading branch information...
1 parent 2bd90c1 commit faae62c433ce630f62361b4d526e64fefe282afa @bousquet bousquet committed Aug 6, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/minitest-rails-shoulda/integrations.rb
@@ -1,7 +1,7 @@
if defined? ActionController
require "shoulda/matchers/action_controller"
- class MiniTest::Rails::Controller
+ class MiniTest::Rails::ActionController::TestCase
include Shoulda::Matchers::ActionController
extend Shoulda::Matchers::ActionController
end
@@ -10,7 +10,7 @@ class MiniTest::Rails::Controller
if defined? ActionMailer
require "shoulda/matchers/action_mailer"
- class MiniTest::Rails::Mailer
+ class MiniTest::Rails::ActionMailer::TestCase
include Shoulda::Matchers::ActionMailer
extend Shoulda::Matchers::ActionMailer
end
@@ -20,7 +20,7 @@ class MiniTest::Rails::Mailer
require "shoulda/matchers/active_record"
require "shoulda/matchers/active_model"
- class MiniTest::Rails::Model
+ class MiniTest::Rails::ActiveSupport::TestCase
include Shoulda::Matchers::ActiveRecord
extend Shoulda::Matchers::ActiveRecord
include Shoulda::Matchers::ActiveModel
@@ -29,7 +29,7 @@ class MiniTest::Rails::Model
elsif defined? ActiveModel
require "shoulda/matchers/active_model"
- class MiniTest::Rails::Model
+ class MiniTest::Rails::ActiveSupport::TestCase
include Shoulda::Matchers::ActiveModel
extend Shoulda::Matchers::ActiveModel
end

0 comments on commit faae62c

Please sign in to comment.