class RSpec::Rails::HyperShortcut::ShortcutElements
Public Class Methods
new(request_pair, behavior)
click to toggle source
# 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
Public Instance Methods
description()
click to toggle source
# File lib/rspec/rails/extra/routing/hyper_shortcut/shortcut_elements.rb, line 8 def description @request_pair.to_s end
it_block()
click to toggle source
# 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