Module: RR::Adapters
- Defined in:
- lib/rr/adapters.rb,
lib/rr/adapters/rr_methods.rb,
lib/rr/integrations/rspec/invocation_matcher.rb
Defined Under Namespace
Modules: RRMethods, Rspec
Constant Summary
collapse
- DEPRECATED_ADAPTERS =
[
:MiniTest,
:TestUnit
]
Class Method Summary
collapse
Class Method Details
.const_missing(adapter_const_name) ⇒ Object
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/rr/adapters.rb', line 9
def const_missing(adapter_const_name)
unless DEPRECATED_ADAPTERS.include?(adapter_const_name)
super
return
end
show_warning_for(adapter_const_name)
adapter = shim_adapters[adapter_const_name] ||=
case adapter_const_name
when :TestUnit
RR.find_applicable_adapter_matching(/^TestUnit/)
when :MiniTest
RR.find_applicable_adapter_matching(/^minitest/i)
end
adapter
end
|