Sha256: 10235e3ae2fb49aedc431c8a13223adfa4173281fd23693a05e4d7399845df2b
Contents?: true
Size: 572 Bytes
Versions: 1
Compression:
Stored size: 572 Bytes
Contents
require 'spec_helper' describe Router do let (:app) do mock_app do get '/' do halt 200, {}, "Bar" "Foo" end post '/' do params[:not_exist].to_s end after do response.body = "Zaz" end end end it "should eval after blocks even if the request was halted" do response = app.get('/') response.body.should == "Zaz" end it "should not raise SystemStackError if any absent param is accessed" do expect { response = app.post('/') }.not_to raise_error SystemStackError end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nyny-3.0.1 | spec/router_spec.rb |