Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "Take capybara out"

This reverts commit e38015e.
  • Loading branch information...
commit d85a37f4cd57d8a416da1172d1940c862e3a8d6c 1 parent e38015e
@samjsharpe samjsharpe authored
Showing with 54 additions and 0 deletions.
  1. +2 −0  Gemfile
  2. +47 −0 Gemfile.lock
  3. +5 −0 features/support/env.rb
View
2  Gemfile
@@ -3,6 +3,8 @@ source "http://rubygems.org"
gem "rake"
gem "rspec"
gem "cucumber"
+gem "capybara"
+gem "capybara-mechanize"
gem "rest-client"
gem "nokogiri"
View
47 Gemfile.lock
@@ -1,18 +1,51 @@
GEM
remote: http://rubygems.org/
specs:
+ addressable (2.3.2)
builder (3.1.3)
+ capybara (1.1.2)
+ mime-types (>= 1.16)
+ nokogiri (>= 1.3.3)
+ rack (>= 1.0.0)
+ rack-test (>= 0.5.4)
+ selenium-webdriver (~> 2.0)
+ xpath (~> 0.1.4)
+ capybara-mechanize (0.3.0)
+ capybara (~> 1.1)
+ mechanize (~> 2.3)
+ childprocess (0.3.5)
+ ffi (~> 1.0, >= 1.0.6)
cucumber (1.2.1)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.11.0)
json (>= 1.4.6)
diff-lcs (1.1.3)
+ domain_name (0.5.4)
+ unf (~> 0.0.3)
+ ffi (1.1.5)
gherkin (2.11.2)
json (>= 1.4.6)
json (1.7.5)
+ libwebsocket (0.1.5)
+ addressable
+ mechanize (2.5.1)
+ domain_name (~> 0.5, >= 0.5.1)
+ mime-types (~> 1.17, >= 1.17.2)
+ net-http-digest_auth (~> 1.1, >= 1.1.1)
+ net-http-persistent (~> 2.5, >= 2.5.2)
+ nokogiri (~> 1.4)
+ ntlm-http (~> 0.1, >= 0.1.1)
+ webrobots (~> 0.0, >= 0.0.9)
mime-types (1.19)
+ multi_json (1.3.7)
+ net-http-digest_auth (1.2.1)
+ net-http-persistent (2.7)
nokogiri (1.5.5)
+ ntlm-http (0.1.1)
+ rack (1.4.1)
+ rack-test (0.6.2)
+ rack (>= 1.0)
rake (0.9.2.2)
rest-client (1.6.7)
mime-types (>= 1.16)
@@ -24,11 +57,25 @@ GEM
rspec-expectations (2.11.3)
diff-lcs (~> 1.1.3)
rspec-mocks (2.11.3)
+ rubyzip (0.9.9)
+ selenium-webdriver (2.25.0)
+ childprocess (>= 0.2.5)
+ libwebsocket (~> 0.1.3)
+ multi_json (~> 1.0)
+ rubyzip
+ unf (0.0.5)
+ unf_ext
+ unf_ext (0.0.5)
+ webrobots (0.0.13)
+ xpath (0.1.4)
+ nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
+ capybara
+ capybara-mechanize
cucumber
nokogiri
rake
View
5 features/support/env.rb
@@ -1,4 +1,6 @@
require 'nokogiri'
+require 'capybara/cucumber'
+require 'capybara/mechanize'
def target_platform
ENV["TARGET_PLATFORM"] || "preview"
@@ -11,3 +13,6 @@ def base_url
"https://www.#{target_platform}.alphagov.co.uk"
end
end
+
+Capybara.default_driver = :mechanize
+Capybara.app_host = base_url
Please sign in to comment.
Something went wrong with that request. Please try again.