Sha256: e726069b38c92f47ca079a57a0f32382fa9f4b1de6868e0ebad7ae3a55599b16

Contents?: true

Size: 869 Bytes

Versions: 13

Compression:

Stored size: 869 Bytes

Contents

module Shoulda
  module Matchers
    module Integrations
      module TestFrameworks
        # @private
        class MissingTestFramework
          Integrations.register_test_framework(self, :missing_test_framework)

          def validate!
            raise TestFrameworkNotConfigured, <<-EOT
You need to set a test framework. Please add the following to your
test helper:

Shoulda::Matchers.configure do |config|
  config.integrate do |with|
    # Choose one:
    with.test_framework :rspec
    with.test_framework :minitest    # or, :minitest_5
    with.test_framework :minitest_4
    with.test_framework :test_unit
  end
end
            EOT
          end

          def include(*modules, **options)
          end

          def n_unit?
            false
          end

          def present?
            false
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shoulda-matchers-6.4.0 lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb
shoulda-matchers-6.3.1 lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb
shoulda-matchers-6.3.0 lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb
shoulda-matchers-6.2.0 lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb
shoulda-matchers-6.1.0 lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb
shoulda-matchers-6.0.0 lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb
shoulda-matchers-5.3.0 lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb
shoulda-matchers-5.2.0 lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb
shoulda-matchers-5.1.0 lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb
shoulda-matchers-5.0.0 lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb
shoulda-matchers-5.0.0.rc1 lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb
shoulda-matchers-4.5.1 lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb
shoulda-matchers-4.5.0 lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb