Permalink
Browse files

fix issue #1

  • Loading branch information...
1 parent 0e8fd12 commit 110a54d2ae85ea4cef9b98c8c31d116fc71bf871 @mrbrdo committed Sep 17, 2012
Showing with 6 additions and 1 deletion.
  1. +1 −1 lib/rack/webconsole.rb
  2. +5 −0 spec/rack/webconsole_spec.rb
View
@@ -23,7 +23,7 @@ module Rack
# variables and giving a true IRB-esque experience.
#
class Webconsole
- @@config = {:inject_jquery => false, :key_code => "96"}
+ @@config = {:inject_jquery => false, :key_code => "[96]"}
class << self
# Returns whether the Asset injecter must inject JQuery or not.
@@ -10,6 +10,11 @@ module Rack
@webconsole.instance_variable_get(:@app).must_equal @app
end
+ it 'initializes config' do
+ Webconsole.inject_jquery.must_equal false
+ Webconsole.key_code.must_equal "[96]"
+ end
+
describe "#call" do
it 'delegates the call to the Repl middleware when the path is /webconsole' do
@app = stub

0 comments on commit 110a54d

Please sign in to comment.