Sha256: 38e732609edb31dce4b524bc6fc920f2ed97779c7218e7efbf6b0d5557e6a6bc
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
require 'forwardable' class RestService extend Forwardable attr_reader :path attr_reader :service attr_reader :browser def initialize(params = {}) defaults = { :service => Sinatra::Base, :path => '/' } defaults.merge! params @service = defaults[:service] @path = defaults[:path] @browser = Rack::Test::Session.new(Rack::MockSession.new(@service)) end def_delegators :@browser, :get, :post, :put, :delete end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-rest-rspec-0.0.3 | lib/rack-rest-rspec/lib/rest_service.rb |