Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed for 1.8; removed debugging message

  • Loading branch information...
commit 5adab74465f42efcf286f0f94ed5a5d1a04ce6cd 1 parent 24ccd1f
Joe Ferris jferris authored
2  Gemfile.lock
View
@@ -2,7 +2,7 @@ PATH
remote: .
specs:
capybara-webkit (0.7.2)
- capybara (< 1.2, >= 1.0.0)
+ capybara (>= 1.0.0, < 1.2)
GEM
remote: http://rubygems.org/
2  lib/capybara/driver/webkit/browser.rb
View
@@ -48,7 +48,7 @@ def status_code
def console_messages
command("ConsoleMessages").split("\n").map do |messages|
parts = messages.split("|", 3)
- { source: parts.first, line_number: Integer(parts[1]), message: parts.last }
+ { :source => parts.first, :line_number => Integer(parts[1]), :message => parts.last }
end
end
3  spec/driver_spec.rb
View
@@ -345,8 +345,7 @@
end
it "collects messages logged to the console" do
- puts subject.console_messages.inspect
- subject.console_messages.first.should include :source, message: "hello", line_number: 6
+ subject.console_messages.first.should include :source, :message => "hello", :line_number => 6
subject.console_messages.length.should eq 3
end
Please sign in to comment.
Something went wrong with that request. Please try again.