Permalink
Browse files

Use Concord::Public to fix Request::Rack

  • Loading branch information...
1 parent a3d5127 commit b3fa41c8638bed256796e3bfbf6d4ea3e615b4f6 @mbj committed May 21, 2013
Showing with 14 additions and 1 deletion.
  1. +1 −1 lib/request/rack.rb
  2. +13 −0 spec/unit/request/rack/rack_env_spec.rb
View
@@ -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')
@@ -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.