Class: RSpec::Rails::HyperShortcut::MatcherPlaceholder
- Inherits:
-
Object
- Object
- RSpec::Rails::HyperShortcut::MatcherPlaceholder
- Defined in:
- lib/rspec/rails/extra/routing/hyper_shortcut/matcher_placeholder.rb
Instance Method Summary collapse
- #build_matcher_in(example) ⇒ Object
-
#initialize(name, args) ⇒ MatcherPlaceholder
constructor
A new instance of MatcherPlaceholder.
Constructor Details
#initialize(name, args) ⇒ MatcherPlaceholder
Returns a new instance of MatcherPlaceholder.
3 4 5 6 |
# File 'lib/rspec/rails/extra/routing/hyper_shortcut/matcher_placeholder.rb', line 3 def initialize(name,args) @name = name @args = args end |
Instance Method Details
#build_matcher_in(example) ⇒ Object
8 9 10 |
# File 'lib/rspec/rails/extra/routing/hyper_shortcut/matcher_placeholder.rb', line 8 def build_matcher_in(example) example.send(@name,*@args) end |