Module: Interjectable::RSpecHelper
- Defined in:
- lib/interjectable/rspec.rb
Instance Method Summary collapse
Instance Method Details
#test_inject(target, dependency, value) ⇒ Object
127 128 129 130 131 132 133 |
# File 'lib/interjectable/rspec.rb', line 127 def test_inject(target, dependency, value) unless value raise ArgumentError, "missing value for #{dependency.inspect}, correct usage: test_inject(my_thing, #{dependency.inspect}, FakeDependency.new)" end ClassMethods.test_inject(self.class, target, dependency, value) end |