Sha256: a1aed34f9a7785cd4e00985f11922a1cad876663a31f155b8922e4990943f910
Contents?: true
Size: 830 Bytes
Versions: 3
Compression:
Stored size: 830 Bytes
Contents
# :enddoc: include Shoulda::Callback::Matchers::RailsVersionHelper # in environments where test/unit is not required, this is necessary unless defined?(Test::Unit::TestCase) begin require rails_4_1? ? 'minitest' : 'test/unit/testcase' rescue LoadError # silent end end if defined?(::ActiveRecord) require 'shoulda/callback/matchers/active_model' module Test module Unit class TestCase include Shoulda::Callback::Matchers::ActiveModel extend Shoulda::Callback::Matchers::ActiveModel end end end elsif defined?(::ActiveModel) require 'shoulda/callback/matchers/active_model' module Test module Unit class TestCase include Shoulda::Callback::Matchers::ActiveModel extend Shoulda::Callback::Matchers::ActiveModel end end end end
Version data entries
3 entries across 3 versions & 1 rubygems