intentmedia-capybara-webkit 0.7.2.3 → 0.7.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- intentmedia-capybara-webkit (0.7.2.3)
4
+ intentmedia-capybara-webkit (0.7.2.4)
5
5
  capybara (>= 1.0.0, < 1.2)
6
6
 
7
7
  GEM
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "intentmedia-capybara-webkit"
3
- s.version = "0.7.2.3"
3
+ s.version = "0.7.2.4"
4
4
  s.authors = ["thoughtbot", "Joe Ferris", "Jason Morrison", "Tristan Dunn",
5
5
  "Joshua Clayton", "Yuichi Tateno", "Aaron Gibralter",
6
6
  "Vasily Reys", "petrushka", "John Bintz", "Chad Pytel",
@@ -21,4 +21,3 @@ Gem::Specification.new do |s|
21
21
  s.add_development_dependency "appraisal"
22
22
  s.extensions = "extconf.rb"
23
23
  end
24
-
data/spec/driver_spec.rb CHANGED
@@ -223,9 +223,9 @@ describe Capybara::Driver::Webkit do
223
223
  subject.current_url.should == "http://127.0.0.1:#{port}/hello/world?success=true"
224
224
  end
225
225
 
226
- it "escapes URLs" do
227
- subject.visit("/hello there")
228
- subject.current_url.should =~ /hello%20there/
226
+ it "does not double-encode URLs" do
227
+ subject.visit("/hello/world?success=%25true")
228
+ subject.current_url.should =~ /success=\%25true/
229
229
  end
230
230
 
231
231
  it "visits a page with an anchor" do
data/src/Visit.cpp CHANGED
@@ -7,7 +7,7 @@ Visit::Visit(WebPage *page, QObject *parent) : Command(page, parent) {
7
7
  }
8
8
 
9
9
  void Visit::start(QStringList &arguments) {
10
- QUrl requestedUrl = QUrl(arguments[0]);
10
+ QUrl requestedUrl = QUrl::fromEncoded(arguments[0].toUtf8(), QUrl::StrictMode);
11
11
  page()->currentFrame()->load(QUrl(requestedUrl));
12
12
  }
13
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intentmedia-capybara-webkit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 121
4
+ hash: 119
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
9
  - 2
10
- - 3
11
- version: 0.7.2.3
10
+ - 4
11
+ version: 0.7.2.4
12
12
  platform: ruby
13
13
  authors:
14
14
  - thoughtbot
@@ -31,7 +31,7 @@ autorequire:
31
31
  bindir: bin
32
32
  cert_chain: []
33
33
 
34
- date: 2011-12-31 00:00:00 -05:00
34
+ date: 2012-01-12 00:00:00 -05:00
35
35
  default_executable:
36
36
  dependencies:
37
37
  - !ruby/object:Gem::Dependency