Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3 from bousquet/update-constants

Update constants to match latest MiniTest::Rails
  • Loading branch information...
commit 457ab944caad6760af20ae4f44ec1d17e2b1195d 2 parents 2bd90c1 + b8ac94f
@rawongithub rawongithub authored
View
2  lib/minitest-rails-shoulda.rb
@@ -3,7 +3,7 @@
require "minitest/matchers"
require "minitest-rails-shoulda/integrations"
-module Minitest
+module MiniTest
module Rails
module Shoulda
# Your code goes here...
View
8 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
View
2  lib/minitest-rails-shoulda/version.rb
@@ -1,4 +1,4 @@
-module Minitest
+module MiniTest
module Rails
module Shoulda
VERSION = "0.0.1"
View
2  minitest-rails-shoulda.gemspec
@@ -4,7 +4,7 @@ require "minitest-rails-shoulda/version"
Gem::Specification.new do |s|
s.name = "minitest-rails-shoulda"
- s.version = Minitest::Rails::Shoulda::VERSION
+ s.version = MiniTest::Rails::Shoulda::VERSION
s.authors = ["Rafal Wrzochol"]
s.email = ["rafal@wrzochol.net"]
s.homepage = ""
Please sign in to comment.
Something went wrong with that request. Please try again.