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.6 spec/restpack_web_spec.rb
restpack-web-0.2.5 spec/restpack_web_spec.rb
restpack-web-0.2.4 spec/restpack_web_spec.rb
restpack-web-0.2.3 spec/restpack_web_spec.rb
restpack-web-0.2.2 spec/restpack_web_spec.rb
restpack-web-0.2.1 spec/restpack_web_spec.rb
restpack-web-0.1.53 spec/restpack_web_spec.rb
restpack-web-0.1.52 spec/restpack_web_spec.rb
restpack-web-0.1.51 spec/restpack_web_spec.rb
restpack-web-0.1.50 spec/restpack_web_spec.rb
restpack-web-0.1.48 spec/restpack_web_spec.rb
restpack-web-0.1.47 spec/restpack_web_spec.rb
restpack-web-0.1.46 spec/restpack_web_spec.rb
restpack-web-0.1.45 spec/restpack_web_spec.rb
restpack-web-0.1.44 spec/restpack_web_spec.rb
restpack-web-0.1.43 spec/restpack_web_spec.rb
restpack-web-0.1.42 spec/restpack_web_spec.rb
restpack-web-0.1.40 spec/restpack_web_spec.rb
restpack-web-0.1.39 spec/restpack_web_spec.rb
restpack-web-0.1.38 spec/restpack_web_spec.rb