frameworks-capybara 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/frameworks-capybara.gemspec +2 -2
- data/lib/frameworks/cucumber.rb +4 -3
- data/spec/frameworks_cucumber_spec.rb +4 -4
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.17
|
data/frameworks-capybara.gemspec
CHANGED
@@ -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.
|
8
|
+
s.version = "0.1.17"
|
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-
|
12
|
+
s.date = %q{2012-03-05}
|
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 = [
|
data/lib/frameworks/cucumber.rb
CHANGED
@@ -23,14 +23,14 @@ module Frameworks
|
|
23
23
|
@static_base_url = @static_sandbox + @bbc_domain
|
24
24
|
elsif (ENV['ENVIRONMENT']=='live' && ENV['WWW_LIVE']=='false')
|
25
25
|
@base_url = @www_prefix.chop + @bbc_domain
|
26
|
-
@static_base_url = @static_prefix.chop + @
|
26
|
+
@static_base_url = @static_prefix.chop + @bbci_domain
|
27
27
|
@open_base_url = @open_prefix.chop + @bbc_domain
|
28
28
|
elsif (ENV['ENVIRONMENT'].split('.')[0].include? 'pal') #address specific box
|
29
29
|
@base_url = "#{scheme}://#{ENV['ENVIRONMENT']}"
|
30
30
|
else
|
31
31
|
@base_url = @www_prefix + ENV['ENVIRONMENT'] + @bbc_domain
|
32
|
-
@static_base_url = @static_prefix + ENV['ENVIRONMENT'] + @
|
33
|
-
@static_base_url = @static_prefix.chop + @
|
32
|
+
@static_base_url = @static_prefix + ENV['ENVIRONMENT'] + @bbci_domain
|
33
|
+
@static_base_url = @static_prefix.chop + @bbci_domain if ENV['ENVIRONMENT'] == 'live'
|
34
34
|
@open_base_url = @open_prefix + ENV['ENVIRONMENT'] + @bbc_domain
|
35
35
|
end
|
36
36
|
proxy = ENV['http_proxy'] || ENV['HTTP_PROXY']
|
@@ -59,6 +59,7 @@ module Frameworks
|
|
59
59
|
@static_prefix = "#{scheme}://static."
|
60
60
|
@open_prefix = "#{scheme}://open."
|
61
61
|
@bbc_domain = '.bbc.co.uk'
|
62
|
+
@bbci_domain = '.bbci.co.uk'
|
62
63
|
@sandbox = "#{scheme}://pal.sandbox.dev"
|
63
64
|
@static_sandbox = "#{scheme}://static.sandbox.dev"
|
64
65
|
end
|
@@ -20,7 +20,7 @@ describe Frameworks::EnvHelper do
|
|
20
20
|
ENV['ENVIRONMENT'] = 'foo'
|
21
21
|
generate_base_urls
|
22
22
|
@base_url.should == 'http://www.foo.bbc.co.uk'
|
23
|
-
@static_base_url.should == 'http://static.foo.
|
23
|
+
@static_base_url.should == 'http://static.foo.bbci.co.uk'
|
24
24
|
@open_base_url.should == 'http://open.foo.bbc.co.uk'
|
25
25
|
end
|
26
26
|
|
@@ -28,7 +28,7 @@ describe Frameworks::EnvHelper do
|
|
28
28
|
ENV['ENVIRONMENT'] = 'live'
|
29
29
|
generate_base_urls
|
30
30
|
@base_url.should == 'http://www.live.bbc.co.uk'
|
31
|
-
@static_base_url.should == 'http://static.
|
31
|
+
@static_base_url.should == 'http://static.bbci.co.uk'
|
32
32
|
@open_base_url.should == 'http://open.live.bbc.co.uk'
|
33
33
|
end
|
34
34
|
|
@@ -37,7 +37,7 @@ describe Frameworks::EnvHelper do
|
|
37
37
|
ENV['WWW_LIVE'] = 'false'
|
38
38
|
generate_base_urls
|
39
39
|
@base_url.should == 'http://www.bbc.co.uk'
|
40
|
-
@static_base_url.should == 'http://static.
|
40
|
+
@static_base_url.should == 'http://static.bbci.co.uk'
|
41
41
|
@open_base_url.should == 'http://open.bbc.co.uk'
|
42
42
|
end
|
43
43
|
|
@@ -46,7 +46,7 @@ describe Frameworks::EnvHelper do
|
|
46
46
|
ENV['ENVIRONMENT'] = 'foo'
|
47
47
|
generate_base_urls
|
48
48
|
@base_url.should == 'https://www.foo.bbc.co.uk'
|
49
|
-
@static_base_url.should == 'https://static.foo.
|
49
|
+
@static_base_url.should == 'https://static.foo.bbci.co.uk'
|
50
50
|
@open_base_url.should == 'https://open.foo.bbc.co.uk'
|
51
51
|
end
|
52
52
|
|
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:
|
4
|
+
hash: 57
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 17
|
10
|
+
version: 0.1.17
|
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-
|
18
|
+
date: 2012-03-05 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|