capybara-webkit 0.4.0 → 0.4.1

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.
@@ -1,9 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "capybara-webkit"
3
- s.version = "0.4.0"
3
+ s.version = "0.4.1"
4
4
  s.authors = ["thoughtbot", "Joe Ferris", "Jason Morrison", "Tristan Dunn",
5
5
  "Joshua Clayton", "Yuichi Tateno", "Aaron Gibralter",
6
- "Vasily Reys", "petrushka", "John Bintz",
6
+ "Vasily Reys", "petrushka", "John Bintz", "Chad Pytel",
7
7
  "Christopher Meiklejohn", "John Barker", "Jeremy Wells"]
8
8
  s.email = "support@thoughtbot.com"
9
9
  s.files = `git ls-files`.split("\n")
data/spec/driver_spec.rb CHANGED
@@ -167,6 +167,11 @@ describe Capybara::Driver::Webkit do
167
167
  subject.current_url.should =~ /hello%20there/
168
168
  end
169
169
 
170
+ it "visits a page with an anchor" do
171
+ subject.visit("/hello#display_none")
172
+ subject.current_url.should =~ /hello#display_none/
173
+ end
174
+
170
175
  it "returns the source code for the page" do
171
176
  subject.source.should =~ %r{<html>.*greeting.*}m
172
177
  end
data/src/Visit.cpp CHANGED
@@ -7,7 +7,12 @@ Visit::Visit(WebPage *page, QObject *parent) : Command(page, parent) {
7
7
  }
8
8
 
9
9
  void Visit::start(QStringList &arguments) {
10
- page()->currentFrame()->setUrl(QUrl(arguments[0]));
10
+ QUrl requestedUrl = QUrl(arguments[0]);
11
+ page()->currentFrame()->setUrl(QUrl(requestedUrl));
12
+ if(requestedUrl.hasFragment()) {
13
+ // workaround for https://bugs.webkit.org/show_bug.cgi?id=32723
14
+ page()->currentFrame()->setUrl(QUrl(requestedUrl));
15
+ }
11
16
  }
12
17
 
13
18
  void Visit::loadFinished(bool success) {
@@ -17,4 +22,3 @@ void Visit::loadFinished(bool success) {
17
22
 
18
23
  emit finished(new Response(success, message));
19
24
  }
20
-
data/src/Visit.h CHANGED
@@ -13,4 +13,3 @@ class Visit : public Command {
13
13
  void loadFinished(bool success);
14
14
  };
15
15
 
16
-
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-webkit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - thoughtbot
@@ -20,6 +20,7 @@ authors:
20
20
  - Vasily Reys
21
21
  - petrushka
22
22
  - John Bintz
23
+ - Chad Pytel
23
24
  - Christopher Meiklejohn
24
25
  - John Barker
25
26
  - Jeremy Wells
@@ -27,11 +28,12 @@ autorequire:
27
28
  bindir: bin
28
29
  cert_chain: []
29
30
 
30
- date: 2011-05-24 00:00:00 -04:00
31
+ date: 2011-06-02 00:00:00 -04:00
31
32
  default_executable:
32
33
  dependencies:
33
34
  - !ruby/object:Gem::Dependency
34
- type: :runtime
35
+ name: capybara
36
+ prerelease: false
35
37
  requirement: &id001 !ruby/object:Gem::Requirement
36
38
  none: false
37
39
  requirements:
@@ -43,9 +45,8 @@ dependencies:
43
45
  - 4
44
46
  - 1
45
47
  version: 0.4.1
48
+ type: :runtime
46
49
  version_requirements: *id001
47
- name: capybara
48
- prerelease: false
49
50
  description:
50
51
  email: support@thoughtbot.com
51
52
  executables: []
@@ -142,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
143
  requirements: []
143
144
 
144
145
  rubyforge_project:
145
- rubygems_version: 1.6.1
146
+ rubygems_version: 1.4.1
146
147
  signing_key:
147
148
  specification_version: 3
148
149
  summary: Headless Webkit driver for Capybara