Sha256: 1e5c41ef5a800895fca4d8d3646ff4c88bdf5d040332b059becfa79691426a4a
Contents?: true
Size: 548 Bytes
Versions: 78
Compression:
Stored size: 548 Bytes
Contents
require 'rspec' require 'rack/test' require 'restpack-web' RSpec.configure do |config| config.color_enabled = true config.formatter = 'documentation' end describe RestPack::Web do include Rack::Test::Methods let(:app) { RestPack::Web::App.new( lambda { |env| [200, {'Content-Type' => 'text/plain'}, 'hello there'] }, { core_domain: 'localhost:1111', password: '1234' } ) } it "returns a valid response" do get '/' last_response.should be_ok last_response.body.should == 'hello there' end end
Version data entries
78 entries across 78 versions & 1 rubygems