Module: Shoulda::Matchers::Integrations
- Defined in:
- lib/shoulda/matchers/integrations.rb,
lib/shoulda/matchers/integrations/rails.rb,
lib/shoulda/matchers/integrations/registry.rb,
lib/shoulda/matchers/integrations/inclusion.rb,
lib/shoulda/matchers/integrations/libraries.rb,
lib/shoulda/matchers/integrations/configuration.rb,
lib/shoulda/matchers/integrations/libraries/rails.rb,
lib/shoulda/matchers/integrations/test_frameworks.rb,
lib/shoulda/matchers/integrations/libraries/routing.rb,
lib/shoulda/matchers/integrations/configuration_error.rb,
lib/shoulda/matchers/integrations/test_frameworks/rspec.rb,
lib/shoulda/matchers/integrations/libraries/active_model.rb,
lib/shoulda/matchers/integrations/libraries/active_record.rb,
lib/shoulda/matchers/integrations/libraries/missing_library.rb,
lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb,
lib/shoulda/matchers/integrations/test_frameworks/minitest_4.rb,
lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb,
lib/shoulda/matchers/integrations/libraries/action_controller.rb,
lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb,
lib/shoulda/matchers/integrations/test_frameworks/active_support_test_case.rb
Defined Under Namespace
Modules: Inclusion, Libraries, Rails, TestFrameworks
Classes: Configuration, ConfigurationError, Registry
Class Method Summary
collapse
Class Method Details
.find_library!(name) ⇒ Object
10
11
12
|
# File 'lib/shoulda/matchers/integrations.rb', line 10
def find_library!(name)
library_registry.find!(name)
end
|
.find_test_framework!(name) ⇒ Object
18
19
20
|
# File 'lib/shoulda/matchers/integrations.rb', line 18
def find_test_framework!(name)
test_framework_registry.find!(name)
end
|
.register_library(klass, name) ⇒ Object
6
7
8
|
# File 'lib/shoulda/matchers/integrations.rb', line 6
def register_library(klass, name)
library_registry.register(klass, name)
end
|
.register_test_framework(klass, name) ⇒ Object
14
15
16
|
# File 'lib/shoulda/matchers/integrations.rb', line 14
def register_test_framework(klass, name)
test_framework_registry.register(klass, name)
end
|