1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
thoughtbot--shoulda-matchers/lib/shoulda/matchers/integrations/rspec.rb
2010-12-15 17:34:19 -05:00

23 lines
515 B
Ruby

# :enddoc:
if defined?(::ActiveRecord)
require 'shoulda/matchers/active_record'
module RSpec::Matchers
include Shoulda::Matchers::ActiveRecord
end
end
if defined?(::ActionController)
require 'shoulda/matchers/action_controller'
module RSpec::Rails::ControllerExampleGroup
include Shoulda::Matchers::ActionController
end
end
if defined?(::ActionMailer)
require 'shoulda/matchers/action_mailer'
module RSpec::Rails::MailerExampleGroup
include Shoulda::Matchers::ActionMailer
end
end