Sha256: e879cb85ba7d610b5af56c08480a5d99b9fd70277e7b59ac110b2572cd10151c

Contents?: true

Size: 1.33 KB

Versions: 15

Compression:

Stored size: 1.33 KB

Contents

# :enddoc:
require 'test/unit/testcase'
require 'shoulda/matchers/independent'

module Test
  module Unit
    class TestCase
      include Shoulda::Matchers::Independent
      extend Shoulda::Matchers::Independent
    end
  end
end

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

15 entries across 14 versions & 3 rubygems

Version Path
challah-1.0.0.beta3 vendor/bundle/gems/shoulda-matchers-1.5.6/lib/shoulda/matchers/integrations/test_unit.rb
challah-1.0.0.beta2 vendor/bundle/gems/shoulda-matchers-1.5.6/lib/shoulda/matchers/integrations/test_unit.rb
challah-1.0.0.beta vendor/bundle/gems/shoulda-matchers-1.4.2/lib/shoulda/matchers/integrations/test_unit.rb
challah-1.0.0.beta vendor/bundle/gems/shoulda-matchers-1.5.6/lib/shoulda/matchers/integrations/test_unit.rb
shoulda-matchers-1.5.6 lib/shoulda/matchers/integrations/test_unit.rb
shoulda-matchers-1.5.5 lib/shoulda/matchers/integrations/test_unit.rb
shoulda-matchers-1.5.4 lib/shoulda/matchers/integrations/test_unit.rb
shoulda-matchers-1.5.2 lib/shoulda/matchers/integrations/test_unit.rb
shoulda-matchers-1.5.1 lib/shoulda/matchers/integrations/test_unit.rb
shoulda-matchers-1.5.0 lib/shoulda/matchers/integrations/test_unit.rb
challah-0.9.1.beta.3 vendor/bundle/gems/shoulda-matchers-1.4.2/lib/shoulda/matchers/integrations/test_unit.rb
devise_sociable-0.1.0 vendor/bundle/gems/shoulda-matchers-1.4.2/lib/shoulda/matchers/integrations/test_unit.rb
challah-0.9.1.beta vendor/bundle/gems/shoulda-matchers-1.4.2/lib/shoulda/matchers/integrations/test_unit.rb
challah-0.9.0 vendor/bundle/gems/shoulda-matchers-1.4.2/lib/shoulda/matchers/integrations/test_unit.rb
shoulda-matchers-1.4.2 lib/shoulda/matchers/integrations/test_unit.rb