Permalink
Browse files

location is optional

  • Loading branch information...
1 parent c5fbada commit be66826347fb53c829755f918a53a3b8526d4a08 @assembler committed Feb 8, 2012
Showing with 2 additions and 8 deletions.
  1. +2 −1 lib/browsernizer/config.rb
  2. +0 −7 spec/browsernizer/config_spec.rb
@@ -3,7 +3,8 @@ class Config
def initialize
@supported = []
- @location = "/unsupported-browser.html"
+ @location = nil
+ @handler = lambda { }
end
def supported(browser, version)
@@ -4,13 +4,6 @@
subject { config = Browsernizer::Config.new }
- describe "new" do
- it "sets the defaults" do
- subject.get_supported.should == []
- subject.get_location.should == "/unsupported-browser.html"
- end
- end
-
describe "supported(name, version)" do
it "defines new supported browser" do
subject.supported "Chrome", "16.0"

0 comments on commit be66826

Please sign in to comment.