class RSpec::Rails::HyperShortcut::RequestPair
Public Class Methods
new(method,path)
click to toggle source
# File lib/rspec/rails/extra/routing/hyper_shortcut/request_pair.rb, line 3 def initialize(method,path) @method = method @path = path end
Public Instance Methods
to_hash()
click to toggle source
# File lib/rspec/rails/extra/routing/hyper_shortcut/request_pair.rb, line 8 def to_hash {@method => @path} end
to_s()
click to toggle source
# File lib/rspec/rails/extra/routing/hyper_shortcut/request_pair.rb, line 12 def to_s "#{@method.to_s.upcase} #{@path}" end