Sha256: 360bcdec49ae1267822a9ef64c113f1d6ace44a70d40b888be4f888696f84163
Contents?: true
Size: 511 Bytes
Versions: 4
Compression:
Stored size: 511 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'] }, { :aa => 444 } ) } it "returns a valid response" do get '/' last_response.should be_ok last_response.body.should == 'hello there' end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
restpack-web-0.0.9 | spec/restpack_web_spec.rb |
restpack-web-0.0.8 | spec/restpack_web_spec.rb |
restpack-web-0.0.7 | spec/restpack_web_spec.rb |
restpack-web-0.0.6 | spec/restpack_web_spec.rb |