Sha256: a245d5cb4c8e582845f1a584bb7631a4424e48a04c19057ac80e0d500538e72c
Contents?: true
Size: 373 Bytes
Versions: 3
Compression:
Stored size: 373 Bytes
Contents
require "rack/test" describe Anypow::App do include Rack::Test::Methods def app config = File.expand_path('../../resources/config.ru', __FILE__) Anypow::App.new("rackup -p $PORT -s webrick #{config}") end it "respond from the backend server" do get '/' expect(last_response).to be_ok expect(last_response.body).to eq("Hello Rack!") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
anypow-0.0.3 | spec/anypow/app_spec.rb |
anypow-0.0.2 | spec/anypow/app_spec.rb |
anypow-0.0.1 | spec/anypow/app_spec.rb |