Sha256: addc0b21a28bee4d1346502ed489a93d62e597a6cf83bfe9c9dad5b60f3bf5c8
Contents?: true
Size: 639 Bytes
Versions: 2
Compression:
Stored size: 639 Bytes
Contents
# encoding: utf-8 # require 'spec_helper' describe Adapters::Rack::LiveParameters do let(:live_parameters) { stub :live_parameters } let(:adapter) { described_class.new live_parameters } describe 'to_app' do it 'works' do lambda { adapter.to_app }.should_not raise_error end it 'returns the right thing' do adapter.to_app.should respond_to(:call) end it 'returned lambda should call parameters on the live parameters' do env = { 'rack.input' => 'some input' } live_parameters.should_receive(:parameters).once.with({}) adapter.to_app.call env end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picky-2.7.0 | spec/lib/adapters/rack/live_parameters_spec.rb |
picky-2.6.0 | spec/lib/adapters/rack/live_parameters_spec.rb |