Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
Fixed for 1.8; removed debugging message
Browse files Browse the repository at this point in the history
  • Loading branch information
jferris committed Dec 7, 2011
1 parent 24ccd1f commit 5adab74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion lib/capybara/driver/webkit/browser.rb
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions spec/driver_spec.rb
Expand Up @@ -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

Expand Down

0 comments on commit 5adab74

Please sign in to comment.