Skip to content

Commit

Permalink
Made Rack::Test::Session#env_for accessible for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Aßmann committed Mar 20, 2012
1 parent cb2d9ac commit 55934ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/teststrap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def collection?
class Riot::Situation

def app; @app; end
Rack::Test::Session.send :public, :env_for
Rack::Test::Methods.send :def_delegators, :current_session, :env_for
include Rack::Test::Methods
include Addressable

Expand Down

0 comments on commit 55934ed

Please sign in to comment.