Class: RSpec::Rails::HyperShortcut::ShortcutElements
- Inherits:
-
Object
- Object
- RSpec::Rails::HyperShortcut::ShortcutElements
- Defined in:
- lib/rspec/rails/extra/routing/hyper_shortcut/shortcut_elements.rb
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(request_pair, behavior) ⇒ ShortcutElements
constructor
A new instance of ShortcutElements.
- #it_block ⇒ Object
Constructor Details
#initialize(request_pair, behavior) ⇒ ShortcutElements
Returns a new instance of ShortcutElements.
3 4 5 6 |
# File 'lib/rspec/rails/extra/routing/hyper_shortcut/shortcut_elements.rb', line 3 def initialize(request_pair, behavior) @request_pair = request_pair @behavior = behavior end |
Instance Method Details
#description ⇒ Object
8 9 10 |
# File 'lib/rspec/rails/extra/routing/hyper_shortcut/shortcut_elements.rb', line 8 def description @request_pair.to_s end |
#it_block ⇒ Object
12 13 14 |
# File 'lib/rspec/rails/extra/routing/hyper_shortcut/shortcut_elements.rb', line 12 def it_block @behavior.block_to_test @request_pair.to_hash end |