frameworks-capybara 0.1.8 → 0.1.9
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 +1 -1
- data/frameworks-capybara.gemspec +2 -2
- data/lib/frameworks/cucumber.rb +1 -0
- data/spec/frameworks_cucumber_spec.rb +8 -0
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.9
|
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.9"
|
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-01
|
12
|
+
s.date = %q{2012-02-01}
|
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
@@ -28,6 +28,7 @@ module Frameworks
|
|
28
28
|
else
|
29
29
|
@base_url = @www_prefix + ENV['ENVIRONMENT'] + @bbc_domain
|
30
30
|
@static_base_url = @static_prefix + ENV['ENVIRONMENT'] + @bbc_domain
|
31
|
+
@static_base_url = @static_prefix.chop + @bbc_domain if ENV['ENVIRONMENT'] == 'live'
|
31
32
|
@open_base_url = @open_prefix + ENV['ENVIRONMENT'] + @bbc_domain
|
32
33
|
end
|
33
34
|
end
|
@@ -24,6 +24,14 @@ describe Frameworks::EnvHelper do
|
|
24
24
|
@open_base_url.should == 'http://open.foo.bbc.co.uk'
|
25
25
|
end
|
26
26
|
|
27
|
+
it "should set correct static base for www.live.bbc.co.uk" do
|
28
|
+
ENV['ENVIRONMENT'] = 'live'
|
29
|
+
generate_base_urls
|
30
|
+
@base_url.should == 'http://www.live.bbc.co.uk'
|
31
|
+
@static_base_url.should == 'http://static.bbc.co.uk'
|
32
|
+
@open_base_url.should == 'http://open.live.bbc.co.uk'
|
33
|
+
end
|
34
|
+
|
27
35
|
it "should be able to set a 'classic' live url" do
|
28
36
|
ENV['ENVIRONMENT'] = 'live'
|
29
37
|
ENV['WWW_LIVE'] = 'false'
|
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: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 9
|
10
|
+
version: 0.1.9
|
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-01
|
18
|
+
date: 2012-02-01 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|