Skip to content

Commit

Permalink
Use Concord::Public to fix Request::Rack
Browse files Browse the repository at this point in the history
  • Loading branch information
mbj committed May 21, 2013
1 parent a3d5127 commit b3fa41c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/request/rack.rb
@@ -1,7 +1,7 @@
class Request
# Rack request
class Rack < self
include Concord.new(:rack_env)
include Concord::Public.new(:rack_env)

SERVER_PORT = Key.new('SERVER_PORT')
REQUEST_METHOD = Key.new('REQUEST_METHOD')
Expand Down
13 changes: 13 additions & 0 deletions spec/unit/request/rack/rack_env_spec.rb
@@ -0,0 +1,13 @@
require 'spec_helper'

describe Request::Rack, '#rack_env' do
let(:object) { described_class.new(rack_env) }

subject { object.rack_env }

let(:rack_env) { mock('Rack Env') }

it { should be(rack_env) }

it_should_behave_like 'a command method'
end

0 comments on commit b3fa41c

Please sign in to comment.