frameworks-capybara 0.2.20 → 0.2.21

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.21
2
+ Add support for Centos6 sandbox
3
+ Update Gemfile.lock to latest gem versions
4
+
1
5
  0.2.20
2
6
  validate_online() now takes optional hash of parameters to pass to MarkupValidator
3
7
  Updated proxy handling to pick up port and to work without protocol or port.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- frameworks-capybara (0.2.20)
4
+ frameworks-capybara (0.2.21)
5
5
  capybara (>= 1.0.0)
6
6
  capybara-celerity
7
7
  capybara-mechanize (>= 0.3.0)
data/README.rdoc CHANGED
@@ -27,7 +27,7 @@ In your env.rb simply add:
27
27
 
28
28
  The following environment variables can be set to configure your tests:
29
29
 
30
- ENVIRONMENT - this must be one of either 'sandbox', 'int', 'test', 'stage', 'live'
30
+ ENVIRONMENT - this must be one of either 'sandbox', 'sandbox6', 'int', 'test', 'stage', 'live'
31
31
  BROWSER - this must be one of either 'ie', 'firefox', 'chrome', 'headless', 'remote'
32
32
  HTTP_PROXY - url of proxy if required e.g. 'http://proxyhost:80', when running a headless browser this sets the proxy for the browser itself, when running a remote browser this sets the proxy for the client which will connect to the remote selenium server
33
33
  PLATFORM - used when specifying remote test on a grid that provides a choice of platforms, this must be one of either 'WINDOWS' or 'LINUX'
@@ -124,7 +124,7 @@ class CapybaraSetup
124
124
  elsif(profile_name == 'BBC_INTERNAL')
125
125
  profile = Selenium::WebDriver::Firefox::Profile.new
126
126
  profile["network.proxy.type"] = 1
127
- profile["network.proxy.no_proxies_on"] = "*.sandbox.dev.bbc.co.uk"
127
+ profile["network.proxy.no_proxies_on"] = "*.sandbox.dev.bbc.co.uk,*.sandbox.bbc.co.uk"
128
128
  profile["network.proxy.http"] = @proxy_host
129
129
  profile["network.proxy.ssl"] = @proxy_host
130
130
  profile["network.proxy.http_port"] = 80
@@ -29,6 +29,13 @@ module Frameworks
29
29
  @static_base_url = @static_sandbox + @bbc_domain
30
30
  @mobile_base_url = @mobiledot_prefix + "sandbox.dev.bbc.co.uk"
31
31
  @m_base_url = @mdot_prefix + "sandbox.dev.bbc.co.uk"
32
+ elsif(environment =='sandbox6')
33
+ @base_url = @sandbox6 + @bbc_domain
34
+ @pal_base_url = @sandbox6 + @bbc_domain
35
+ @ssl_base_url = @sslsandbox6 + @bbc_domain
36
+ @static_base_url = @static_sandbox6 + @bbc_domain
37
+ @mobile_base_url = @mobiledot_prefix + "sandbox.eng.cloud.bbc.co.uk"
38
+ @m_base_url = @mdot_prefix + "sandbox.eng.cloud.bbc.co.uk"
32
39
  elsif (environment =='live' && ENV['WWW_LIVE']=='false')
33
40
  @base_url = @www_prefix.chop + @bbc_domain
34
41
  @pal_base_url = @pal_prefix + environment + @bbc_domain
@@ -95,10 +102,13 @@ module Frameworks
95
102
  @bbc_domain = '.bbc.co.uk'
96
103
  @bbci_domain = '.bbci.co.uk'
97
104
  @sandbox = "#{scheme}://pal.sandbox.dev"
105
+ @sandbox6 = "#{scheme}://sandbox.eng.cloud"
98
106
  @mobiledot_prefix = "#{scheme}://mobile."
99
107
  @mdot_prefix = "#{scheme}://m."
100
108
  @sslsandbox = "https://ssl.sandbox.dev"
109
+ @sslsandbox6 = "https://ssl.sandbox.eng.cloud"
101
110
  @static_sandbox = "#{scheme}://static.sandbox.dev"
111
+ @static_sandbox6 = "#{scheme}://static.sandbox.eng.cloud"
102
112
  end
103
113
 
104
114
  def setup_mechanize(agent, http_proxy=nil)
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module FrameworksCapybara
2
- VERSION = '0.2.20'
2
+ VERSION = '0.2.21'
3
3
  end
@@ -127,7 +127,7 @@ describe CapybaraSetup do
127
127
  Capybara.current_session.driver.options[:browser].should == :firefox
128
128
  Capybara.current_session.driver.options[:profile].should be_a_kind_of Selenium::WebDriver::Firefox::Profile
129
129
  Capybara.current_session.driver.options[:profile].instance_variable_get(:@additional_prefs)['network.proxy.type'].should == 1
130
- Capybara.current_session.driver.options[:profile].instance_variable_get(:@additional_prefs)['network.proxy.no_proxies_on'].should == '*.sandbox.dev.bbc.co.uk'
130
+ Capybara.current_session.driver.options[:profile].instance_variable_get(:@additional_prefs)['network.proxy.no_proxies_on'].should == '*.sandbox.dev.bbc.co.uk,*.sandbox.bbc.co.uk'
131
131
  Capybara.current_session.driver.options[:profile].instance_variable_get(:@additional_prefs)['network.proxy.http'].should == 'example.cache.co.uk'
132
132
  Capybara.current_session.driver.options[:profile].instance_variable_get(:@additional_prefs)['network.proxy.http_port'].should == 80
133
133
  Capybara.current_session.driver.options[:profile].instance_variable_get(:@additional_prefs)['network.proxy.ssl'].should == 'example.cache.co.uk'
@@ -216,7 +216,7 @@ describe CapybaraSetup do
216
216
  Capybara.current_session.driver.options[:browser].should == :remote
217
217
  Capybara.current_session.driver.options[:desired_capabilities].instance_variable_get(:@capabilities)[:firefox_profile].should be_a_kind_of Selenium::WebDriver::Firefox::Profile
218
218
  Capybara.current_session.driver.options[:desired_capabilities].instance_variable_get(:@capabilities)[:firefox_profile].instance_variable_get(:@additional_prefs)['network.proxy.type'].should == 1
219
- Capybara.current_session.driver.options[:desired_capabilities].instance_variable_get(:@capabilities)[:firefox_profile].instance_variable_get(:@additional_prefs)['network.proxy.no_proxies_on'].should == '*.sandbox.dev.bbc.co.uk'
219
+ Capybara.current_session.driver.options[:desired_capabilities].instance_variable_get(:@capabilities)[:firefox_profile].instance_variable_get(:@additional_prefs)['network.proxy.no_proxies_on'].should == '*.sandbox.dev.bbc.co.uk,*.sandbox.bbc.co.uk'
220
220
  Capybara.current_session.driver.options[:desired_capabilities].instance_variable_get(:@capabilities)[:firefox_profile].instance_variable_get(:@additional_prefs)['network.proxy.http'].should == 'example.cache.co.uk'
221
221
  Capybara.current_session.driver.options[:desired_capabilities].instance_variable_get(:@capabilities)[:firefox_profile].instance_variable_get(:@additional_prefs)['network.proxy.http_port'].should == 80
222
222
  Capybara.current_session.driver.options[:desired_capabilities].instance_variable_get(:@capabilities)[:firefox_profile].instance_variable_get(:@additional_prefs)['network.proxy.ssl'].should == 'example.cache.co.uk'
@@ -20,6 +20,16 @@ describe Frameworks::EnvHelper do
20
20
  @mobile_base_url.should == 'http://mobile.sandbox.dev.bbc.co.uk'
21
21
  end
22
22
 
23
+ it "should be able to set a local system6 url" do
24
+ ENV['ENVIRONMENT'] = 'sandbox6'
25
+ generate_base_urls
26
+ @base_url.should == 'http://sandbox.eng.cloud.bbc.co.uk'
27
+ @ssl_base_url.should == 'https://ssl.sandbox.eng.cloud.bbc.co.uk'
28
+ @static_base_url.should == 'http://static.sandbox.eng.cloud.bbc.co.uk'
29
+ @m_base_url.should == 'http://m.sandbox.eng.cloud.bbc.co.uk'
30
+ @mobile_base_url.should == 'http://mobile.sandbox.eng.cloud.bbc.co.uk'
31
+ end
32
+
23
33
  it "should be able to set a base url" do
24
34
  ENV['ENVIRONMENT'] = 'foo'
25
35
  generate_base_urls
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frameworks-capybara
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
5
- prerelease:
4
+ prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 2
9
- - 20
10
- version: 0.2.20
8
+ - 21
9
+ version: 0.2.21
11
10
  platform: ruby
12
11
  authors:
13
12
  - matt robbins
@@ -15,142 +14,125 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2012-12-07 00:00:00 Z
17
+ date: 2013-02-13 00:00:00 +00:00
18
+ default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
+ type: :runtime
21
22
  version_requirements: &id001 !ruby/object:Gem::Requirement
22
- none: false
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- hash: 23
27
26
  segments:
28
27
  - 1
29
28
  - 0
30
29
  - 0
31
30
  version: 1.0.0
32
- prerelease: false
33
- type: :runtime
34
31
  name: capybara
35
32
  requirement: *id001
33
+ prerelease: false
36
34
  - !ruby/object:Gem::Dependency
35
+ type: :runtime
37
36
  version_requirements: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
37
  requirements:
40
38
  - - ">="
41
39
  - !ruby/object:Gem::Version
42
- hash: 19
43
40
  segments:
44
41
  - 0
45
42
  - 3
46
43
  - 0
47
44
  version: 0.3.0
48
- prerelease: false
49
- type: :runtime
50
45
  name: capybara-mechanize
51
46
  requirement: *id002
47
+ prerelease: false
52
48
  - !ruby/object:Gem::Dependency
49
+ type: :runtime
53
50
  version_requirements: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
51
  requirements:
56
52
  - - ">="
57
53
  - !ruby/object:Gem::Version
58
- hash: 3
59
54
  segments:
60
55
  - 0
61
56
  version: "0"
62
- prerelease: false
63
- type: :runtime
64
57
  name: json
65
58
  requirement: *id003
59
+ prerelease: false
66
60
  - !ruby/object:Gem::Dependency
61
+ type: :runtime
67
62
  version_requirements: &id004 !ruby/object:Gem::Requirement
68
- none: false
69
63
  requirements:
70
64
  - - ">="
71
65
  - !ruby/object:Gem::Version
72
- hash: 3
73
66
  segments:
74
67
  - 0
75
68
  version: "0"
76
- prerelease: false
77
- type: :runtime
78
69
  name: headless
79
70
  requirement: *id004
71
+ prerelease: false
80
72
  - !ruby/object:Gem::Dependency
73
+ type: :runtime
81
74
  version_requirements: &id005 !ruby/object:Gem::Requirement
82
- none: false
83
75
  requirements:
84
76
  - - ">="
85
77
  - !ruby/object:Gem::Version
86
- hash: 3
87
78
  segments:
88
79
  - 0
89
80
  version: "0"
90
- prerelease: false
91
- type: :runtime
92
81
  name: capybara-celerity
93
82
  requirement: *id005
83
+ prerelease: false
94
84
  - !ruby/object:Gem::Dependency
85
+ type: :runtime
95
86
  version_requirements: &id006 !ruby/object:Gem::Requirement
96
- none: false
97
87
  requirements:
98
88
  - - ">="
99
89
  - !ruby/object:Gem::Version
100
- hash: 3
101
90
  segments:
102
91
  - 0
103
92
  version: "0"
104
- prerelease: false
105
- type: :runtime
106
93
  name: w3c_validators
107
94
  requirement: *id006
95
+ prerelease: false
108
96
  - !ruby/object:Gem::Dependency
97
+ type: :runtime
109
98
  version_requirements: &id007 !ruby/object:Gem::Requirement
110
- none: false
111
99
  requirements:
112
100
  - - ">="
113
101
  - !ruby/object:Gem::Version
114
- hash: 61
115
102
  segments:
116
103
  - 0
117
104
  - 10
118
105
  - 5
119
106
  version: 0.10.5
120
- prerelease: false
121
- type: :runtime
122
107
  name: cucumber
123
108
  requirement: *id007
109
+ prerelease: false
124
110
  - !ruby/object:Gem::Dependency
111
+ type: :development
125
112
  version_requirements: &id008 !ruby/object:Gem::Requirement
126
- none: false
127
113
  requirements:
128
114
  - - ">="
129
115
  - !ruby/object:Gem::Version
130
- hash: 3
131
116
  segments:
132
117
  - 0
133
118
  version: "0"
134
- prerelease: false
135
- type: :development
136
119
  name: rake
137
120
  requirement: *id008
121
+ prerelease: false
138
122
  - !ruby/object:Gem::Dependency
123
+ type: :development
139
124
  version_requirements: &id009 !ruby/object:Gem::Requirement
140
- none: false
141
125
  requirements:
142
126
  - - ">="
143
127
  - !ruby/object:Gem::Version
144
- hash: 23
145
128
  segments:
146
129
  - 1
147
130
  - 0
148
131
  - 0
149
132
  version: 1.0.0
150
- prerelease: false
151
- type: :development
152
133
  name: rspec
153
134
  requirement: *id009
135
+ prerelease: false
154
136
  description: Gem to ease the pain of managing capybara driver config and provide a home for common utils and patches
155
137
  email:
156
138
  - mcrobbins@gmail.com
@@ -190,6 +172,7 @@ files:
190
172
  - spec/profiles.ini
191
173
  - spec/spec_helper.rb
192
174
  - spec/unit_test_monkeypatches.rb
175
+ has_rdoc: true
193
176
  homepage:
194
177
  licenses: []
195
178
 
@@ -199,27 +182,23 @@ rdoc_options: []
199
182
  require_paths:
200
183
  - lib
201
184
  required_ruby_version: !ruby/object:Gem::Requirement
202
- none: false
203
185
  requirements:
204
186
  - - ">="
205
187
  - !ruby/object:Gem::Version
206
- hash: 3
207
188
  segments:
208
189
  - 0
209
190
  version: "0"
210
191
  required_rubygems_version: !ruby/object:Gem::Requirement
211
- none: false
212
192
  requirements:
213
193
  - - ">="
214
194
  - !ruby/object:Gem::Version
215
- hash: 3
216
195
  segments:
217
196
  - 0
218
197
  version: "0"
219
198
  requirements: []
220
199
 
221
200
  rubyforge_project:
222
- rubygems_version: 1.8.24
201
+ rubygems_version: 1.3.6
223
202
  signing_key:
224
203
  specification_version: 3
225
204
  summary: Gem to ease the pain of managing capybara driver config and provide a home for common utils and patches