Sha256: aa1d2332ea80a02a5d8ca51c407f1bcbddcadd97dbdbef6c6c0cf08239210045
Contents?: true
Size: 1.11 KB
Versions: 36
Compression:
Stored size: 1.11 KB
Contents
# :enddoc: if defined?(ActionController) require 'shoulda/matchers/action_controller' class ActionController::TestCase include Shoulda::Matchers::ActionController extend Shoulda::Matchers::ActionController def subject @controller end end end if defined?(ActionMailer) require 'shoulda/matchers/action_mailer' module Test module Unit class TestCase include Shoulda::Matchers::ActionMailer extend Shoulda::Matchers::ActionMailer end end end end if defined?(ActiveRecord) require 'shoulda/matchers/active_record' require 'shoulda/matchers/active_model' module Test module Unit class TestCase include Shoulda::Matchers::ActiveRecord extend Shoulda::Matchers::ActiveRecord include Shoulda::Matchers::ActiveModel extend Shoulda::Matchers::ActiveModel end end end elsif defined?(ActiveModel) require 'shoulda/matchers/active_model' module Test module Unit class TestCase include Shoulda::Matchers::ActiveModel extend Shoulda::Matchers::ActiveModel end end end end
Version data entries
36 entries across 25 versions & 5 rubygems