capybara 2.2.0.rc1 → 2.2.0
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.md +1 -1
- data/lib/capybara/spec/session/attach_file_spec.rb +1 -1
- data/lib/capybara/spec/session/fill_in_spec.rb +1 -1
- data/lib/capybara/version.rb +1 -1
- data/spec/selenium_spec.rb +1 -1
- data/spec/selenium_spec_chrome.rb +21 -0
- metadata +6 -24
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff8b1c7b127254ed4d7b263f6059404d55f7d2c5
|
4
|
+
data.tar.gz: 56a9f3f7468241935f824fbcc6fb531bcc79c9ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19aaa439fe5623157eddd25d709dc929d5271adc1e3d5e6f34880cb33e9b51185d4fca4594c2693ad49c4b3cfe400cf47d75098032b7b2539ffe93c322bad2d0
|
7
|
+
data.tar.gz: e6a3cf29a04aed9ca5a407d25d02fc1ede00550008e646379aff6018037f82029f697a979d0dfdfac6613f66fc912590272b9d1717994a7c9bb3528893d2b648
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.md
CHANGED
@@ -64,7 +64,7 @@ Capybara::SpecHelper.spec "#attach_file" do
|
|
64
64
|
end
|
65
65
|
|
66
66
|
it "should not break when using HTML5 multiple file input uploading multiple files" do
|
67
|
-
pending "Selenium is buggy on this, see http://code.google.com/p/selenium/issues/detail?id=2239" if @session.respond_to?(:mode) && @session.mode
|
67
|
+
pending "Selenium is buggy on this, see http://code.google.com/p/selenium/issues/detail?id=2239" if @session.respond_to?(:mode) && @session.mode.to_s =~ /^selenium/
|
68
68
|
@session.attach_file "Multiple Documents", [@test_file_path, @another_test_file_path]
|
69
69
|
@session.click_button('Upload Multiple')
|
70
70
|
@session.body.should include("2 | ")#number of files
|
@@ -57,7 +57,7 @@ Capybara::SpecHelper.spec "#fill_in" do
|
|
57
57
|
extract_results(@session)['description'].should == 'is <strong>very</strong> secret!'
|
58
58
|
end
|
59
59
|
|
60
|
-
it "should handle newlines in a textarea"
|
60
|
+
it "should handle newlines in a textarea" do
|
61
61
|
@session.fill_in('form_description', :with => "\nSome text\n")
|
62
62
|
@session.click_button('awesome')
|
63
63
|
extract_results(@session)['description'].should == "\r\nSome text\r\n"
|
data/lib/capybara/version.rb
CHANGED
data/spec/selenium_spec.rb
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
Capybara.register_driver :selenium_chrome do |app|
|
4
|
+
args = ENV['TRAVIS'] ? ['no-sandbox' ] : []
|
5
|
+
Capybara::Selenium::Driver.new(app, :browser => :chrome, :args => args)
|
6
|
+
end
|
7
|
+
|
8
|
+
class ChromeTestApp < TestApp
|
9
|
+
# Object.id is different from the TestApp used in firefox session so
|
10
|
+
# a new Capybar::Server instance will get launched for chrome testing
|
11
|
+
end
|
12
|
+
|
13
|
+
module TestSessions
|
14
|
+
Chrome = Capybara::Session.new(:selenium_chrome, ChromeTestApp)
|
15
|
+
end
|
16
|
+
|
17
|
+
Capybara::SpecHelper.run_specs TestSessions::Chrome, "selenium_chrome", :skip => [
|
18
|
+
:response_headers,
|
19
|
+
:status_code,
|
20
|
+
:trigger
|
21
|
+
]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.0
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Nicklas
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
dwCI6mleXOr4MSRezf19ZUFr0CqlFcrpBSyOakStQLM8La3EAmhOEUa2UE2FIgq5
|
30
30
|
R1SH1ni+3bH7B4tAkbWskg==
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2013-11-
|
32
|
+
date: 2013-11-21 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: nokogiri
|
@@ -358,6 +358,7 @@ files:
|
|
358
358
|
- spec/rspec/matchers_spec.rb
|
359
359
|
- spec/rspec_spec.rb
|
360
360
|
- spec/selenium_spec.rb
|
361
|
+
- spec/selenium_spec_chrome.rb
|
361
362
|
- spec/server_spec.rb
|
362
363
|
- spec/spec_helper.rb
|
363
364
|
- README.md
|
@@ -367,26 +368,7 @@ homepage: http://github.com/jnicklas/capybara
|
|
367
368
|
licenses:
|
368
369
|
- MIT
|
369
370
|
metadata: {}
|
370
|
-
post_install_message:
|
371
|
-
IMPORTANT! Some of the defaults have changed in Capybara 2.1. If you're experiencing failures,
|
372
|
-
please revert to the old behaviour by setting:
|
373
|
-
|
374
|
-
Capybara.configure do |config|
|
375
|
-
config.match = :one
|
376
|
-
config.exact_options = true
|
377
|
-
config.ignore_hidden_elements = true
|
378
|
-
config.visible_text_only = true
|
379
|
-
end
|
380
|
-
|
381
|
-
If you're migrating from Capybara 1.x, try:
|
382
|
-
|
383
|
-
Capybara.configure do |config|
|
384
|
-
config.match = :prefer_exact
|
385
|
-
config.ignore_hidden_elements = false
|
386
|
-
end
|
387
|
-
|
388
|
-
Details here: http://www.elabs.se/blog/60-introducing-capybara-2-1
|
389
|
-
|
371
|
+
post_install_message:
|
390
372
|
rdoc_options: []
|
391
373
|
require_paths:
|
392
374
|
- lib
|
@@ -397,9 +379,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
397
379
|
version: 1.9.3
|
398
380
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
399
381
|
requirements:
|
400
|
-
- - '
|
382
|
+
- - '>='
|
401
383
|
- !ruby/object:Gem::Version
|
402
|
-
version:
|
384
|
+
version: '0'
|
403
385
|
requirements: []
|
404
386
|
rubyforge_project: capybara
|
405
387
|
rubygems_version: 2.0.6
|
metadata.gz.sig
CHANGED
Binary file
|