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

Version Path
restpack-web-0.2.26 spec/restpack_web_spec.rb
restpack-web-0.2.25 spec/restpack_web_spec.rb
restpack-web-0.2.24 spec/restpack_web_spec.rb
restpack-web-0.2.23 spec/restpack_web_spec.rb
restpack-web-0.2.22 spec/restpack_web_spec.rb
restpack-web-0.2.21 spec/restpack_web_spec.rb
restpack-web-0.2.20 spec/restpack_web_spec.rb
restpack-web-0.2.19 spec/restpack_web_spec.rb
restpack-web-0.2.18 spec/restpack_web_spec.rb
restpack-web-0.2.17 spec/restpack_web_spec.rb
restpack-web-0.2.16 spec/restpack_web_spec.rb
restpack-web-0.2.15 spec/restpack_web_spec.rb
restpack-web-0.2.14 spec/restpack_web_spec.rb
restpack-web-0.2.13 spec/restpack_web_spec.rb
restpack-web-0.2.12 spec/restpack_web_spec.rb
restpack-web-0.2.11 spec/restpack_web_spec.rb
restpack-web-0.2.10 spec/restpack_web_spec.rb
restpack-web-0.2.9 spec/restpack_web_spec.rb
restpack-web-0.2.8 spec/restpack_web_spec.rb
restpack-web-0.2.7 spec/restpack_web_spec.rb