frameworks-capybara 0.1.14 → 0.1.15

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.14
1
+ 0.1.15
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{frameworks-capybara}
8
- s.version = "0.1.14"
8
+ s.version = "0.1.15"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mcrmfc"]
12
- s.date = %q{2012-02-13}
12
+ s.date = %q{2012-02-27}
13
13
  s.description = %q{gem to aid setup of Capybara for testing bbc sites}
14
14
  s.email = %q{mcrobbins@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -34,7 +34,7 @@ module Frameworks
34
34
  @open_base_url = @open_prefix + ENV['ENVIRONMENT'] + @bbc_domain
35
35
  end
36
36
  proxy = ENV['http_proxy'] || ENV['HTTP_PROXY']
37
- @proxy_host = ENV['http_proxy'].scan(/http:\/\/(.*):80/).to_s if proxy
37
+ @proxy_host = proxy.scan(/http:\/\/(.*):80/).to_s if proxy
38
38
  end
39
39
 
40
40
  def validate_online(src)
@@ -50,6 +50,18 @@ describe Frameworks::EnvHelper do
50
50
  @open_base_url.should == 'https://open.foo.bbc.co.uk'
51
51
  end
52
52
 
53
+ it "should be able to set proxy host correctly to use in tests using HTTP_PROXY env variable" do
54
+ ENV['HTTP_PROXY'] = 'http://mycache.co.uk:80'
55
+ generate_base_urls
56
+ @proxy_host.should == "mycache.co.uk"
57
+ end
58
+
59
+ it "should be able to set proxy host correctly to use in tests using http_proxy env variable" do
60
+ ENV['http_proxy'] = 'http://mycache.co.uk:80'
61
+ generate_base_urls
62
+ @proxy_host.should == "mycache.co.uk"
63
+ end
64
+
53
65
  =begin
54
66
  #don't want to push proxy addr online
55
67
  it "should be able to validate xhtml online" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frameworks-capybara
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 14
10
- version: 0.1.14
9
+ - 15
10
+ version: 0.1.15
11
11
  platform: ruby
12
12
  authors:
13
13
  - mcrmfc
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-13 00:00:00 +00:00
18
+ date: 2012-02-27 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency