Class: RSpec::Rails::HyperShortcut::SubjectPlaceholder
- Inherits:
-
Object
- Object
- RSpec::Rails::HyperShortcut::SubjectPlaceholder
- Defined in:
- lib/rspec/rails/extra/routing/hyper_shortcut/subject_placeholder.rb
Instance Method Summary collapse
- #describe_my(behavior) ⇒ Object
-
#initialize(group, request_pair) ⇒ SubjectPlaceholder
constructor
A new instance of SubjectPlaceholder.
- #should(matcher_placeholder) ⇒ Object
- #should_not(matcher_placeholder) ⇒ Object
Constructor Details
#initialize(group, request_pair) ⇒ SubjectPlaceholder
Returns a new instance of SubjectPlaceholder.
3 4 5 6 |
# File 'lib/rspec/rails/extra/routing/hyper_shortcut/subject_placeholder.rb', line 3 def initialize(group,request_pair) @group = group @request_pair = request_pair end |
Instance Method Details
#describe_my(behavior) ⇒ Object
18 19 20 21 |
# File 'lib/rspec/rails/extra/routing/hyper_shortcut/subject_placeholder.rb', line 18 def describe_my(behavior) shortcut_elements = ShortcutElements.new @request_pair, behavior describe_from(shortcut_elements) end |