capybara 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +26 -0
- data/README.md +36 -14
- data/lib/capybara.rb +6 -3
- data/lib/capybara/driver/base.rb +37 -1
- data/lib/capybara/driver/node.rb +10 -2
- data/lib/capybara/helpers.rb +21 -13
- data/lib/capybara/node/base.rb +12 -7
- data/lib/capybara/node/element.rb +17 -1
- data/lib/capybara/node/finders.rb +22 -1
- data/lib/capybara/node/matchers.rb +26 -5
- data/lib/capybara/node/simple.rb +9 -2
- data/lib/capybara/rack_test/css_handlers.rb +3 -1
- data/lib/capybara/rack_test/form.rb +3 -2
- data/lib/capybara/rack_test/node.rb +3 -3
- data/lib/capybara/rspec.rb +1 -0
- data/lib/capybara/rspec/features.rb +2 -1
- data/lib/capybara/rspec/matchers.rb +50 -5
- data/lib/capybara/selenium/driver.rb +76 -12
- data/lib/capybara/selenium/node.rb +8 -0
- data/lib/capybara/server.rb +1 -1
- data/lib/capybara/session.rb +234 -29
- data/lib/capybara/spec/public/jquery.js +1 -1
- data/lib/capybara/spec/public/test.js +7 -0
- data/lib/capybara/spec/session/all_spec.rb +88 -17
- data/lib/capybara/spec/session/assert_selector.rb +6 -0
- data/lib/capybara/spec/session/attach_file_spec.rb +15 -15
- data/lib/capybara/spec/session/body_spec.rb +4 -4
- data/lib/capybara/spec/session/check_spec.rb +16 -16
- data/lib/capybara/spec/session/choose_spec.rb +5 -5
- data/lib/capybara/spec/session/click_button_spec.rb +93 -84
- data/lib/capybara/spec/session/click_link_or_button_spec.rb +8 -8
- data/lib/capybara/spec/session/click_link_spec.rb +26 -19
- data/lib/capybara/spec/session/current_scope_spec.rb +3 -3
- data/lib/capybara/spec/session/current_url_spec.rb +8 -8
- data/lib/capybara/spec/session/evaluate_script_spec.rb +1 -1
- data/lib/capybara/spec/session/execute_script_spec.rb +2 -2
- data/lib/capybara/spec/session/fill_in_spec.rb +22 -22
- data/lib/capybara/spec/session/find_button_spec.rb +4 -4
- data/lib/capybara/spec/session/find_by_id_spec.rb +3 -3
- data/lib/capybara/spec/session/find_field_spec.rb +7 -7
- data/lib/capybara/spec/session/find_link_spec.rb +4 -4
- data/lib/capybara/spec/session/find_spec.rb +46 -46
- data/lib/capybara/spec/session/first_spec.rb +23 -23
- data/lib/capybara/spec/session/go_back_spec.rb +3 -3
- data/lib/capybara/spec/session/go_forward_spec.rb +4 -4
- data/lib/capybara/spec/session/has_button_spec.rb +13 -13
- data/lib/capybara/spec/session/has_css_spec.rb +87 -87
- data/lib/capybara/spec/session/has_field_spec.rb +87 -87
- data/lib/capybara/spec/session/has_link_spec.rb +11 -11
- data/lib/capybara/spec/session/has_select_spec.rb +58 -58
- data/lib/capybara/spec/session/has_selector_spec.rb +48 -48
- data/lib/capybara/spec/session/has_table_spec.rb +7 -7
- data/lib/capybara/spec/session/has_text_spec.rb +73 -73
- data/lib/capybara/spec/session/has_title_spec.rb +10 -10
- data/lib/capybara/spec/session/has_xpath_spec.rb +44 -44
- data/lib/capybara/spec/session/headers.rb +1 -1
- data/lib/capybara/spec/session/html_spec.rb +9 -9
- data/lib/capybara/spec/session/node_spec.rb +81 -65
- data/lib/capybara/spec/session/reset_session_spec.rb +15 -15
- data/lib/capybara/spec/session/response_code.rb +1 -1
- data/lib/capybara/spec/session/save_and_open_screenshot_spec.rb +46 -0
- data/lib/capybara/spec/session/save_page_spec.rb +9 -9
- data/lib/capybara/spec/session/{screenshot.rb → screenshot_spec.rb} +4 -2
- data/lib/capybara/spec/session/select_spec.rb +22 -22
- data/lib/capybara/spec/session/text_spec.rb +15 -10
- data/lib/capybara/spec/session/title_spec.rb +2 -2
- data/lib/capybara/spec/session/uncheck_spec.rb +7 -7
- data/lib/capybara/spec/session/unselect_spec.rb +14 -14
- data/lib/capybara/spec/session/visit_spec.rb +24 -17
- data/lib/capybara/spec/session/window/become_closed_spec.rb +84 -0
- data/lib/capybara/spec/session/window/current_window_spec.rb +25 -0
- data/lib/capybara/spec/session/window/open_new_window_spec.rb +28 -0
- data/lib/capybara/spec/session/window/switch_to_window_spec.rb +114 -0
- data/lib/capybara/spec/session/window/window_opened_by_spec.rb +83 -0
- data/lib/capybara/spec/session/window/window_spec.rb +141 -0
- data/lib/capybara/spec/session/window/windows_spec.rb +31 -0
- data/lib/capybara/spec/session/window/within_window_spec.rb +188 -0
- data/lib/capybara/spec/session/within_frame_spec.rb +9 -9
- data/lib/capybara/spec/session/within_spec.rb +16 -16
- data/lib/capybara/spec/spec_helper.rb +14 -4
- data/lib/capybara/spec/views/form.erb +7 -0
- data/lib/capybara/spec/views/popup_one.erb +1 -1
- data/lib/capybara/spec/views/popup_two.erb +1 -1
- data/lib/capybara/spec/views/with_js.erb +2 -0
- data/lib/capybara/spec/views/with_windows.erb +38 -0
- data/lib/capybara/version.rb +1 -1
- data/lib/capybara/window.rb +123 -0
- data/spec/basic_node_spec.rb +32 -32
- data/spec/capybara_spec.rb +6 -7
- data/spec/dsl_spec.rb +48 -48
- data/spec/fixtures/selenium_driver_rspec_failure.rb +2 -2
- data/spec/fixtures/selenium_driver_rspec_success.rb +2 -2
- data/spec/rack_test_spec.rb +33 -19
- data/spec/result_spec.rb +13 -13
- data/spec/rspec/features_spec.rb +20 -15
- data/spec/rspec/matchers_spec.rb +109 -109
- data/spec/rspec_spec.rb +10 -10
- data/spec/selenium_spec.rb +31 -6
- data/spec/selenium_spec_chrome.rb +2 -2
- data/spec/server_spec.rb +13 -13
- metadata +51 -62
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/capybara/spec/session/within_window_spec.rb +0 -45
- data/lib/capybara/spec/views/within_popups.erb +0 -25
- metadata.gz.sig +0 -0
data/spec/rspec_spec.rb
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe 'capybara/rspec', :type => :feature do
|
3
|
+
RSpec.describe 'capybara/rspec', :type => :feature do
|
4
4
|
it "should include Capybara in rspec" do
|
5
5
|
visit('/foo')
|
6
|
-
page.body.
|
6
|
+
expect(page.body).to include('Another World')
|
7
7
|
end
|
8
8
|
|
9
9
|
context "resetting session" do
|
10
10
|
it "sets a cookie in one example..." do
|
11
11
|
visit('/set_cookie')
|
12
|
-
page.body.
|
12
|
+
expect(page.body).to include('Cookie set to test_cookie')
|
13
13
|
end
|
14
14
|
|
15
|
-
it "...then it is not
|
15
|
+
it "...then it is not available in the next" do
|
16
16
|
visit('/get_cookie')
|
17
|
-
page.body.
|
17
|
+
expect(page.body).not_to include('test_cookie')
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
@@ -24,20 +24,20 @@ describe 'capybara/rspec', :type => :feature do
|
|
24
24
|
end
|
25
25
|
|
26
26
|
it "...then it has returned to the default in the next example" do
|
27
|
-
Capybara.current_driver.
|
27
|
+
expect(Capybara.current_driver).to eq(:rack_test)
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
31
|
it "switches to the javascript driver when giving it as metadata", :js => true do
|
32
|
-
Capybara.current_driver.
|
32
|
+
expect(Capybara.current_driver).to eq(Capybara.javascript_driver)
|
33
33
|
end
|
34
34
|
|
35
35
|
it "switches to the given driver when giving it as metadata", :driver => :culerity do
|
36
|
-
Capybara.current_driver.
|
36
|
+
expect(Capybara.current_driver).to eq(:culerity)
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
describe 'capybara/rspec', :type => :other do
|
40
|
+
RSpec.describe 'capybara/rspec', :type => :other do
|
41
41
|
it "should not include Capybara" do
|
42
42
|
expect { visit('/') }.to raise_error(NoMethodError)
|
43
43
|
end
|
@@ -46,6 +46,6 @@ end
|
|
46
46
|
feature "Feature DSL" do
|
47
47
|
scenario "is pulled in" do
|
48
48
|
visit('/foo')
|
49
|
-
page.body.
|
49
|
+
expect(page.body).to include('Another World')
|
50
50
|
end
|
51
51
|
end
|
data/spec/selenium_spec.rb
CHANGED
@@ -11,13 +11,13 @@ module TestSessions
|
|
11
11
|
Selenium = Capybara::Session.new(:selenium_focus, TestApp)
|
12
12
|
end
|
13
13
|
|
14
|
-
Capybara::SpecHelper.run_specs TestSessions::Selenium, "selenium", :
|
14
|
+
Capybara::SpecHelper.run_specs TestSessions::Selenium, "selenium", :capybara_skip => [
|
15
15
|
:response_headers,
|
16
16
|
:status_code,
|
17
17
|
:trigger
|
18
18
|
]
|
19
19
|
|
20
|
-
describe Capybara::Session do
|
20
|
+
RSpec.describe Capybara::Session do
|
21
21
|
context 'with selenium driver' do
|
22
22
|
before do
|
23
23
|
@session = TestSessions::Selenium
|
@@ -25,13 +25,21 @@ describe Capybara::Session do
|
|
25
25
|
|
26
26
|
describe '#driver' do
|
27
27
|
it "should be a selenium driver" do
|
28
|
-
@session.driver.
|
28
|
+
expect(@session.driver).to be_an_instance_of(Capybara::Selenium::Driver)
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
32
|
describe '#mode' do
|
33
33
|
it "should remember the mode" do
|
34
|
-
@session.mode.
|
34
|
+
expect(@session.mode).to eq(:selenium_focus)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe "#reset!" do
|
39
|
+
it "freshly reset session should not be touched" do
|
40
|
+
@session.instance_variable_set(:@touched, true)
|
41
|
+
@session.reset!
|
42
|
+
expect(@session.instance_variable_get(:@touched)).to eq false
|
35
43
|
end
|
36
44
|
end
|
37
45
|
|
@@ -47,13 +55,30 @@ describe Capybara::Session do
|
|
47
55
|
|
48
56
|
it "should have return code 1 when running selenium_driver_rspec_failure.rb" do
|
49
57
|
`rspec spec/fixtures/selenium_driver_rspec_failure.rb`
|
50
|
-
$?.exitstatus.
|
58
|
+
expect($?.exitstatus).to be 1
|
51
59
|
end
|
52
60
|
|
53
61
|
it "should have return code 0 when running selenium_driver_rspec_success.rb" do
|
54
62
|
`rspec spec/fixtures/selenium_driver_rspec_success.rb`
|
55
|
-
$?.exitstatus.
|
63
|
+
expect($?.exitstatus).to be 0
|
56
64
|
end
|
57
65
|
end
|
58
66
|
end
|
59
67
|
end
|
68
|
+
|
69
|
+
RSpec.describe Capybara::Selenium::Driver do
|
70
|
+
before do
|
71
|
+
@driver = Capybara::Selenium::Driver.new(TestApp, browser: :firefox)
|
72
|
+
end
|
73
|
+
|
74
|
+
describe '#quit' do
|
75
|
+
it "should reset browser when quit" do
|
76
|
+
expect(@driver.browser).to be
|
77
|
+
@driver.quit
|
78
|
+
#access instance variable directly so we don't create a new browser instance
|
79
|
+
expect(@driver.instance_variable_get(:@browser)).to be_nil
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
|
@@ -14,8 +14,8 @@ module TestSessions
|
|
14
14
|
Chrome = Capybara::Session.new(:selenium_chrome, ChromeTestApp)
|
15
15
|
end
|
16
16
|
|
17
|
-
Capybara::SpecHelper.run_specs TestSessions::Chrome, "selenium_chrome", :
|
17
|
+
Capybara::SpecHelper.run_specs TestSessions::Chrome, "selenium_chrome", :capybara_skip => [
|
18
18
|
:response_headers,
|
19
19
|
:status_code,
|
20
20
|
:trigger
|
21
|
-
]
|
21
|
+
] unless ENV['TRAVIS'] && (RUBY_PLATFORM == 'java')
|
data/spec/server_spec.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe Capybara::Server do
|
3
|
+
RSpec.describe Capybara::Server do
|
4
4
|
|
5
5
|
it "should spool up a rack server" do
|
6
6
|
@app = proc { |env| [200, {}, ["Hello Server!"]]}
|
@@ -8,7 +8,7 @@ describe Capybara::Server do
|
|
8
8
|
|
9
9
|
@res = Net::HTTP.start(@server.host, @server.port) { |http| http.get('/') }
|
10
10
|
|
11
|
-
@res.body.
|
11
|
+
expect(@res.body).to include('Hello Server')
|
12
12
|
end
|
13
13
|
|
14
14
|
it "should do nothing when no server given" do
|
@@ -42,7 +42,7 @@ describe Capybara::Server do
|
|
42
42
|
@server = Capybara::Server.new(@app).boot
|
43
43
|
|
44
44
|
@res = Net::HTTP.start(@server.host, 22789) { |http| http.get('/') }
|
45
|
-
@res.body.
|
45
|
+
expect(@res.body).to include('Hello Server')
|
46
46
|
|
47
47
|
Capybara.server_port = nil
|
48
48
|
end
|
@@ -52,7 +52,7 @@ describe Capybara::Server do
|
|
52
52
|
@server = Capybara::Server.new(@app, 22790).boot
|
53
53
|
|
54
54
|
@res = Net::HTTP.start(@server.host, 22790) { |http| http.get('/') }
|
55
|
-
@res.body.
|
55
|
+
expect(@res.body).to include('Hello Server')
|
56
56
|
|
57
57
|
Capybara.server_port = nil
|
58
58
|
end
|
@@ -65,10 +65,10 @@ describe Capybara::Server do
|
|
65
65
|
@server2 = Capybara::Server.new(@app2).boot
|
66
66
|
|
67
67
|
@res1 = Net::HTTP.start(@server1.host, @server1.port) { |http| http.get('/') }
|
68
|
-
@res1.body.
|
68
|
+
expect(@res1.body).to include('Hello Server')
|
69
69
|
|
70
70
|
@res2 = Net::HTTP.start(@server2.host, @server2.port) { |http| http.get('/') }
|
71
|
-
@res2.body.
|
71
|
+
expect(@res2.body).to include('Hello Second Server')
|
72
72
|
end
|
73
73
|
|
74
74
|
it "should use the server if it already running" do
|
@@ -81,13 +81,13 @@ describe Capybara::Server do
|
|
81
81
|
@server2b = Capybara::Server.new(@app2).boot
|
82
82
|
|
83
83
|
@res1 = Net::HTTP.start(@server1b.host, @server1b.port) { |http| http.get('/') }
|
84
|
-
@res1.body.
|
84
|
+
expect(@res1.body).to include('Hello Server')
|
85
85
|
|
86
86
|
@res2 = Net::HTTP.start(@server2b.host, @server2b.port) { |http| http.get('/') }
|
87
|
-
@res2.body.
|
87
|
+
expect(@res2.body).to include('Hello Second Server')
|
88
88
|
|
89
|
-
@server1a.port.
|
90
|
-
@server2a.port.
|
89
|
+
expect(@server1a.port).to eq(@server1b.port)
|
90
|
+
expect(@server2a.port).to eq(@server2b.port)
|
91
91
|
end
|
92
92
|
|
93
93
|
it "should raise server errors when the server errors before the timeout" do
|
@@ -97,9 +97,9 @@ describe Capybara::Server do
|
|
97
97
|
raise 'kaboom'
|
98
98
|
end
|
99
99
|
|
100
|
-
|
100
|
+
expect do
|
101
101
|
Capybara::Server.new(proc {|e|}).boot
|
102
|
-
end.
|
102
|
+
end.to raise_error(RuntimeError, 'kaboom')
|
103
103
|
ensure
|
104
104
|
# TODO refactor out the defaults so it's reliant on unset state instead of
|
105
105
|
# a one-time call in capybara.rb
|
@@ -110,7 +110,7 @@ describe Capybara::Server do
|
|
110
110
|
it "is not #responsive? when Net::HTTP raises a SystemCallError" do
|
111
111
|
app = lambda { [200, {}, ['Hello, world']] }
|
112
112
|
server = Capybara::Server.new(app)
|
113
|
-
Net::HTTP.
|
113
|
+
expect(Net::HTTP).to receive(:start).and_raise(SystemCallError.allocate)
|
114
114
|
expect(server.responsive?).to eq false
|
115
115
|
end
|
116
116
|
end
|
metadata
CHANGED
@@ -1,230 +1,210 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Nicklas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
|
-
-
|
12
|
-
|
13
|
-
MIIDPDCCAiSgAwIBAgIBADANBgkqhkiG9w0BAQUFADBEMRYwFAYDVQQDDA1qb25h
|
14
|
-
cy5uaWNrbGFzMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZ
|
15
|
-
FgNjb20wHhcNMTMwMjE1MjE1NTM2WhcNMTQwMjE1MjE1NTM2WjBEMRYwFAYDVQQD
|
16
|
-
DA1qb25hcy5uaWNrbGFzMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJ
|
17
|
-
k/IsZAEZFgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDb9AZj
|
18
|
-
gNdUKIEFktnRTerfYsCqpAFY97qtTbruj4uEKJeyHRLR4FM3sUe4N6Yb48a3JLpA
|
19
|
-
HQ1ELh5cSdJdyx8TEXmKscrqEcc2lXSgbkoFpyo6IAcEOSpC9vlAeyGpwkKI/+bP
|
20
|
-
bWw3jV236q0Cr7aFMH6nmUvJJsadOwNyUYZWATqOt6X3QoLiEphf7SwhLzAZJr6f
|
21
|
-
HhvjJ0Xo2y/LiJj9N0goOhUL6tC5ws5j4wxP8Z+YFY0Q7x7Q6RQBWcCUhc/GAWex
|
22
|
-
0eXRj2QOTzVrrIOnPN1jqifnqqU30YoMFMh/e6o3x/ziYMn7zAbFXSbtXDKCK4BT
|
23
|
-
3zGZgCiuecspHy9/AgMBAAGjOTA3MAkGA1UdEwQCMAAwHQYDVR0OBBYEFPb8+DY0
|
24
|
-
fm9BZldc/eaKZxfI6XucMAsGA1UdDwQEAwIEsDANBgkqhkiG9w0BAQUFAAOCAQEA
|
25
|
-
JtZrjd9Ds5rcBVP2L9vEa6F2oseq7ye8bavQo9Uh81fDCbVdnaZPhyMth5QhdIBL
|
26
|
-
pG+uafCMAfgU0vQeNXnAzIxmltnP4+e3IwR0Oe21eUD6lSPSvCoIaQ2eDVxoHPPJ
|
27
|
-
5NrJKxj2uuNV1yGLmVhXUFET0OkVvBgdxNmtbE2rRbxXjv5xqW6nBsgVAz0qSxB3
|
28
|
-
9yDTZKW7++Em+yFufMlDr7+1rl8cTxv1Kj43Geu5LVz7n/lHYKAdje4uJ3eBtagI
|
29
|
-
dwCI6mleXOr4MSRezf19ZUFr0CqlFcrpBSyOakStQLM8La3EAmhOEUa2UE2FIgq5
|
30
|
-
R1SH1ni+3bH7B4tAkbWskg==
|
31
|
-
-----END CERTIFICATE-----
|
32
|
-
date: 2014-01-06 00:00:00.000000000 Z
|
11
|
+
- gem-public_cert.pem
|
12
|
+
date: 2014-06-02 00:00:00.000000000 Z
|
33
13
|
dependencies:
|
34
14
|
- !ruby/object:Gem::Dependency
|
35
15
|
name: nokogiri
|
36
16
|
requirement: !ruby/object:Gem::Requirement
|
37
17
|
requirements:
|
38
|
-
- -
|
18
|
+
- - ">="
|
39
19
|
- !ruby/object:Gem::Version
|
40
20
|
version: 1.3.3
|
41
21
|
type: :runtime
|
42
22
|
prerelease: false
|
43
23
|
version_requirements: !ruby/object:Gem::Requirement
|
44
24
|
requirements:
|
45
|
-
- -
|
25
|
+
- - ">="
|
46
26
|
- !ruby/object:Gem::Version
|
47
27
|
version: 1.3.3
|
48
28
|
- !ruby/object:Gem::Dependency
|
49
29
|
name: mime-types
|
50
30
|
requirement: !ruby/object:Gem::Requirement
|
51
31
|
requirements:
|
52
|
-
- -
|
32
|
+
- - ">="
|
53
33
|
- !ruby/object:Gem::Version
|
54
34
|
version: '1.16'
|
55
35
|
type: :runtime
|
56
36
|
prerelease: false
|
57
37
|
version_requirements: !ruby/object:Gem::Requirement
|
58
38
|
requirements:
|
59
|
-
- -
|
39
|
+
- - ">="
|
60
40
|
- !ruby/object:Gem::Version
|
61
41
|
version: '1.16'
|
62
42
|
- !ruby/object:Gem::Dependency
|
63
43
|
name: rack
|
64
44
|
requirement: !ruby/object:Gem::Requirement
|
65
45
|
requirements:
|
66
|
-
- -
|
46
|
+
- - ">="
|
67
47
|
- !ruby/object:Gem::Version
|
68
48
|
version: 1.0.0
|
69
49
|
type: :runtime
|
70
50
|
prerelease: false
|
71
51
|
version_requirements: !ruby/object:Gem::Requirement
|
72
52
|
requirements:
|
73
|
-
- -
|
53
|
+
- - ">="
|
74
54
|
- !ruby/object:Gem::Version
|
75
55
|
version: 1.0.0
|
76
56
|
- !ruby/object:Gem::Dependency
|
77
57
|
name: rack-test
|
78
58
|
requirement: !ruby/object:Gem::Requirement
|
79
59
|
requirements:
|
80
|
-
- -
|
60
|
+
- - ">="
|
81
61
|
- !ruby/object:Gem::Version
|
82
62
|
version: 0.5.4
|
83
63
|
type: :runtime
|
84
64
|
prerelease: false
|
85
65
|
version_requirements: !ruby/object:Gem::Requirement
|
86
66
|
requirements:
|
87
|
-
- -
|
67
|
+
- - ">="
|
88
68
|
- !ruby/object:Gem::Version
|
89
69
|
version: 0.5.4
|
90
70
|
- !ruby/object:Gem::Dependency
|
91
71
|
name: xpath
|
92
72
|
requirement: !ruby/object:Gem::Requirement
|
93
73
|
requirements:
|
94
|
-
- - ~>
|
74
|
+
- - "~>"
|
95
75
|
- !ruby/object:Gem::Version
|
96
76
|
version: '2.0'
|
97
77
|
type: :runtime
|
98
78
|
prerelease: false
|
99
79
|
version_requirements: !ruby/object:Gem::Requirement
|
100
80
|
requirements:
|
101
|
-
- - ~>
|
81
|
+
- - "~>"
|
102
82
|
- !ruby/object:Gem::Version
|
103
83
|
version: '2.0'
|
104
84
|
- !ruby/object:Gem::Dependency
|
105
85
|
name: selenium-webdriver
|
106
86
|
requirement: !ruby/object:Gem::Requirement
|
107
87
|
requirements:
|
108
|
-
- - ~>
|
88
|
+
- - "~>"
|
109
89
|
- !ruby/object:Gem::Version
|
110
90
|
version: '2.0'
|
111
91
|
type: :development
|
112
92
|
prerelease: false
|
113
93
|
version_requirements: !ruby/object:Gem::Requirement
|
114
94
|
requirements:
|
115
|
-
- - ~>
|
95
|
+
- - "~>"
|
116
96
|
- !ruby/object:Gem::Version
|
117
97
|
version: '2.0'
|
118
98
|
- !ruby/object:Gem::Dependency
|
119
99
|
name: sinatra
|
120
100
|
requirement: !ruby/object:Gem::Requirement
|
121
101
|
requirements:
|
122
|
-
- -
|
102
|
+
- - ">="
|
123
103
|
- !ruby/object:Gem::Version
|
124
104
|
version: 0.9.4
|
125
105
|
type: :development
|
126
106
|
prerelease: false
|
127
107
|
version_requirements: !ruby/object:Gem::Requirement
|
128
108
|
requirements:
|
129
|
-
- -
|
109
|
+
- - ">="
|
130
110
|
- !ruby/object:Gem::Version
|
131
111
|
version: 0.9.4
|
132
112
|
- !ruby/object:Gem::Dependency
|
133
113
|
name: rspec
|
134
114
|
requirement: !ruby/object:Gem::Requirement
|
135
115
|
requirements:
|
136
|
-
- -
|
116
|
+
- - ">="
|
137
117
|
- !ruby/object:Gem::Version
|
138
118
|
version: 2.2.0
|
139
119
|
type: :development
|
140
120
|
prerelease: false
|
141
121
|
version_requirements: !ruby/object:Gem::Requirement
|
142
122
|
requirements:
|
143
|
-
- -
|
123
|
+
- - ">="
|
144
124
|
- !ruby/object:Gem::Version
|
145
125
|
version: 2.2.0
|
146
126
|
- !ruby/object:Gem::Dependency
|
147
127
|
name: launchy
|
148
128
|
requirement: !ruby/object:Gem::Requirement
|
149
129
|
requirements:
|
150
|
-
- -
|
130
|
+
- - ">="
|
151
131
|
- !ruby/object:Gem::Version
|
152
132
|
version: 2.0.4
|
153
133
|
type: :development
|
154
134
|
prerelease: false
|
155
135
|
version_requirements: !ruby/object:Gem::Requirement
|
156
136
|
requirements:
|
157
|
-
- -
|
137
|
+
- - ">="
|
158
138
|
- !ruby/object:Gem::Version
|
159
139
|
version: 2.0.4
|
160
140
|
- !ruby/object:Gem::Dependency
|
161
141
|
name: yard
|
162
142
|
requirement: !ruby/object:Gem::Requirement
|
163
143
|
requirements:
|
164
|
-
- -
|
144
|
+
- - ">="
|
165
145
|
- !ruby/object:Gem::Version
|
166
146
|
version: 0.5.8
|
167
147
|
type: :development
|
168
148
|
prerelease: false
|
169
149
|
version_requirements: !ruby/object:Gem::Requirement
|
170
150
|
requirements:
|
171
|
-
- -
|
151
|
+
- - ">="
|
172
152
|
- !ruby/object:Gem::Version
|
173
153
|
version: 0.5.8
|
174
154
|
- !ruby/object:Gem::Dependency
|
175
155
|
name: fuubar
|
176
156
|
requirement: !ruby/object:Gem::Requirement
|
177
157
|
requirements:
|
178
|
-
- -
|
158
|
+
- - ">="
|
179
159
|
- !ruby/object:Gem::Version
|
180
160
|
version: 0.0.1
|
181
161
|
type: :development
|
182
162
|
prerelease: false
|
183
163
|
version_requirements: !ruby/object:Gem::Requirement
|
184
164
|
requirements:
|
185
|
-
- -
|
165
|
+
- - ">="
|
186
166
|
- !ruby/object:Gem::Version
|
187
167
|
version: 0.0.1
|
188
168
|
- !ruby/object:Gem::Dependency
|
189
169
|
name: cucumber
|
190
170
|
requirement: !ruby/object:Gem::Requirement
|
191
171
|
requirements:
|
192
|
-
- -
|
172
|
+
- - ">="
|
193
173
|
- !ruby/object:Gem::Version
|
194
174
|
version: 0.10.5
|
195
175
|
type: :development
|
196
176
|
prerelease: false
|
197
177
|
version_requirements: !ruby/object:Gem::Requirement
|
198
178
|
requirements:
|
199
|
-
- -
|
179
|
+
- - ">="
|
200
180
|
- !ruby/object:Gem::Version
|
201
181
|
version: 0.10.5
|
202
182
|
- !ruby/object:Gem::Dependency
|
203
183
|
name: rake
|
204
184
|
requirement: !ruby/object:Gem::Requirement
|
205
185
|
requirements:
|
206
|
-
- -
|
186
|
+
- - ">="
|
207
187
|
- !ruby/object:Gem::Version
|
208
188
|
version: '0'
|
209
189
|
type: :development
|
210
190
|
prerelease: false
|
211
191
|
version_requirements: !ruby/object:Gem::Requirement
|
212
192
|
requirements:
|
213
|
-
- -
|
193
|
+
- - ">="
|
214
194
|
- !ruby/object:Gem::Version
|
215
195
|
version: '0'
|
216
196
|
- !ruby/object:Gem::Dependency
|
217
197
|
name: pry
|
218
198
|
requirement: !ruby/object:Gem::Requirement
|
219
199
|
requirements:
|
220
|
-
- -
|
200
|
+
- - ">="
|
221
201
|
- !ruby/object:Gem::Version
|
222
202
|
version: '0'
|
223
203
|
type: :development
|
224
204
|
prerelease: false
|
225
205
|
version_requirements: !ruby/object:Gem::Requirement
|
226
206
|
requirements:
|
227
|
-
- -
|
207
|
+
- - ">="
|
228
208
|
- !ruby/object:Gem::Version
|
229
209
|
version: '0'
|
230
210
|
description: Capybara is an integration testing tool for rack based web applications.
|
@@ -235,6 +215,10 @@ executables: []
|
|
235
215
|
extensions: []
|
236
216
|
extra_rdoc_files: []
|
237
217
|
files:
|
218
|
+
- History.md
|
219
|
+
- License.txt
|
220
|
+
- README.md
|
221
|
+
- lib/capybara.rb
|
238
222
|
- lib/capybara/cucumber.rb
|
239
223
|
- lib/capybara/driver/base.rb
|
240
224
|
- lib/capybara/driver/node.rb
|
@@ -255,9 +239,9 @@ files:
|
|
255
239
|
- lib/capybara/rack_test/node.rb
|
256
240
|
- lib/capybara/rails.rb
|
257
241
|
- lib/capybara/result.rb
|
242
|
+
- lib/capybara/rspec.rb
|
258
243
|
- lib/capybara/rspec/features.rb
|
259
244
|
- lib/capybara/rspec/matchers.rb
|
260
|
-
- lib/capybara/rspec.rb
|
261
245
|
- lib/capybara/selector.rb
|
262
246
|
- lib/capybara/selenium/driver.rb
|
263
247
|
- lib/capybara/selenium/node.rb
|
@@ -306,8 +290,9 @@ files:
|
|
306
290
|
- lib/capybara/spec/session/node_spec.rb
|
307
291
|
- lib/capybara/spec/session/reset_session_spec.rb
|
308
292
|
- lib/capybara/spec/session/response_code.rb
|
293
|
+
- lib/capybara/spec/session/save_and_open_screenshot_spec.rb
|
309
294
|
- lib/capybara/spec/session/save_page_spec.rb
|
310
|
-
- lib/capybara/spec/session/
|
295
|
+
- lib/capybara/spec/session/screenshot_spec.rb
|
311
296
|
- lib/capybara/spec/session/select_spec.rb
|
312
297
|
- lib/capybara/spec/session/source_spec.rb
|
313
298
|
- lib/capybara/spec/session/text_spec.rb
|
@@ -315,9 +300,16 @@ files:
|
|
315
300
|
- lib/capybara/spec/session/uncheck_spec.rb
|
316
301
|
- lib/capybara/spec/session/unselect_spec.rb
|
317
302
|
- lib/capybara/spec/session/visit_spec.rb
|
303
|
+
- lib/capybara/spec/session/window/become_closed_spec.rb
|
304
|
+
- lib/capybara/spec/session/window/current_window_spec.rb
|
305
|
+
- lib/capybara/spec/session/window/open_new_window_spec.rb
|
306
|
+
- lib/capybara/spec/session/window/switch_to_window_spec.rb
|
307
|
+
- lib/capybara/spec/session/window/window_opened_by_spec.rb
|
308
|
+
- lib/capybara/spec/session/window/window_spec.rb
|
309
|
+
- lib/capybara/spec/session/window/windows_spec.rb
|
310
|
+
- lib/capybara/spec/session/window/within_window_spec.rb
|
318
311
|
- lib/capybara/spec/session/within_frame_spec.rb
|
319
312
|
- lib/capybara/spec/session/within_spec.rb
|
320
|
-
- lib/capybara/spec/session/within_window_spec.rb
|
321
313
|
- lib/capybara/spec/spec_helper.rb
|
322
314
|
- lib/capybara/spec/test_app.rb
|
323
315
|
- lib/capybara/spec/views/buttons.erb
|
@@ -342,10 +334,10 @@ files:
|
|
342
334
|
- lib/capybara/spec/views/with_scope.erb
|
343
335
|
- lib/capybara/spec/views/with_simple_html.erb
|
344
336
|
- lib/capybara/spec/views/with_title.erb
|
337
|
+
- lib/capybara/spec/views/with_windows.erb
|
345
338
|
- lib/capybara/spec/views/within_frames.erb
|
346
|
-
- lib/capybara/spec/views/within_popups.erb
|
347
339
|
- lib/capybara/version.rb
|
348
|
-
- lib/capybara.rb
|
340
|
+
- lib/capybara/window.rb
|
349
341
|
- spec/basic_node_spec.rb
|
350
342
|
- spec/capybara_spec.rb
|
351
343
|
- spec/dsl_spec.rb
|
@@ -360,9 +352,6 @@ files:
|
|
360
352
|
- spec/selenium_spec_chrome.rb
|
361
353
|
- spec/server_spec.rb
|
362
354
|
- spec/spec_helper.rb
|
363
|
-
- README.md
|
364
|
-
- History.md
|
365
|
-
- License.txt
|
366
355
|
homepage: http://github.com/jnicklas/capybara
|
367
356
|
licenses:
|
368
357
|
- MIT
|
@@ -373,17 +362,17 @@ require_paths:
|
|
373
362
|
- lib
|
374
363
|
required_ruby_version: !ruby/object:Gem::Requirement
|
375
364
|
requirements:
|
376
|
-
- -
|
365
|
+
- - ">="
|
377
366
|
- !ruby/object:Gem::Version
|
378
367
|
version: 1.9.3
|
379
368
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
380
369
|
requirements:
|
381
|
-
- -
|
370
|
+
- - ">="
|
382
371
|
- !ruby/object:Gem::Version
|
383
372
|
version: '0'
|
384
373
|
requirements: []
|
385
374
|
rubyforge_project: capybara
|
386
|
-
rubygems_version: 2.
|
375
|
+
rubygems_version: 2.2.2
|
387
376
|
signing_key:
|
388
377
|
specification_version: 4
|
389
378
|
summary: Capybara aims to simplify the process of integration testing Rack applications,
|