Sha256: 8e49831448472cdadf127ddc63619b3c4141bf66a0fc0410814114bf9b693e6f
Contents?: true
Size: 681 Bytes
Versions: 2
Compression:
Stored size: 681 Bytes
Contents
require 'spec_helper' require 'reel/app' describe Reel::App do let(:app) { Class.new do include Reel::App get example_path do [200, {}, "hello foo"] end end } before(:each) do @app = app.new(example_addr, example_port) end after(:each) do @app.server.terminate if @app && @app.server.alive? end it 'responds to get requests' do res = Http.with_response(:object).get example_url res.status.should == 200 res.headers.should == {"Content-Length" => res.body.length.to_s} res.body.should == "hello foo" end it 'terminates the server' do @app.terminate @app.server.should_not be_alive end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reel-0.4.0.pre2 | spec/reel/app_spec.rb |
reel-0.4.0.pre | spec/reel/app_spec.rb |