spec/rack/webconsole/sandbox_spec.rb in rack-webconsole-0.0.5 vs spec/rack/webconsole/sandbox_spec.rb in rack-webconsole-0.1.0

- old
+ new

@@ -34,7 +34,17 @@ it 'returns a feedback string' do Webconsole::Sandbox.new.reload!.must_equal 'ok' end end + describe "request" do + it 'returns the request object' do + @sandbox = Webconsole::Sandbox.new + request = Rack::Request.new({'PATH_INFO' => '/some_path'}) + Webconsole::Repl.request = request + + @sandbox.request.must_equal request + end + end + end end