Sha256: 20879470d4c7eeea0cf182f5f2c308045a62784c33e391a2fcd3b08477b2c0fd

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 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'] }
    )
  }

  it "returns a valid response" do
    get '/'
    last_response.should be_ok
    last_response.body.should == 'hello there'
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
restpack-web-0.0.4 spec/restpack_web_spec.rb
restpack-web-0.0.3 spec/restpack_web_spec.rb