diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-10-06 19:23:44 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-10-06 19:23:44 +0200 |
commit | 15a7e9d92a392ddb02968e60039c0b88416e05d7 (patch) | |
tree | b9359e6bbac0cc39e76db9d1ef9f0433542eda25 | |
parent | 67d6a82610ffed0afaab0cab145024b29e00258c (diff) | |
download | norsk-urskog-registrations-15a7e9d92a392ddb02968e60039c0b88416e05d7.tar.gz norsk-urskog-registrations-15a7e9d92a392ddb02968e60039c0b88416e05d7.tar.bz2 norsk-urskog-registrations-15a7e9d92a392ddb02968e60039c0b88416e05d7.zip |
Install Capybara and Selenium for more advanced tests.
-rw-r--r-- | Gemfile | 2 | ||||
-rw-r--r-- | Gemfile.lock | 24 | ||||
-rw-r--r-- | spec/spec_helper.rb | 3 |
3 files changed, 29 insertions, 0 deletions
@@ -9,4 +9,6 @@ group :development, :test do gem 'byebug' gem "rspec" gem "rack-test" + gem "capybara" + gem "selenium-webdriver" end diff --git a/Gemfile.lock b/Gemfile.lock index 0987043..326223e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,10 +2,23 @@ GEM remote: https://rubygems.org/ specs: byebug (6.0.2) + capybara (2.5.0) + mime-types (>= 1.16) + nokogiri (>= 1.3.3) + rack (>= 1.0.0) + rack-test (>= 0.5.4) + xpath (~> 2.0) + childprocess (0.5.6) + ffi (~> 1.0, >= 1.0.11) diff-lcs (1.2.5) + ffi (1.9.10) mail (2.6.3) mime-types (>= 1.16, < 3) mime-types (2.6.2) + mini_portile (0.6.2) + multi_json (1.11.2) + nokogiri (1.6.6.2) + mini_portile (~> 0.6.0) pdf-core (0.6.0) prawn (2.0.2) pdf-core (~> 0.6.0) @@ -28,6 +41,12 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.3.0) rspec-support (3.3.0) + rubyzip (1.1.7) + selenium-webdriver (2.47.1) + childprocess (~> 0.5) + multi_json (~> 1.0) + rubyzip (~> 1.0) + websocket (~> 1.0) sinatra (1.4.6) rack (~> 1.4) rack-protection (~> 1.4) @@ -36,16 +55,21 @@ GEM sinatra (>= 0.9.1.1) tilt (2.0.1) ttfunk (1.4.0) + websocket (1.2.2) + xpath (2.0.0) + nokogiri (~> 1.3) PLATFORMS ruby DEPENDENCIES byebug + capybara mail prawn rack-test rspec + selenium-webdriver sinatra sinatra-url-for diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 1e7a791..0b78dfd 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -5,6 +5,7 @@ require_relative 'support/band_factory' require 'rspec' require 'rack/test' require 'mail' +require 'capybara/rspec' RSpec.configure do |config| config.include BandFactory @@ -13,3 +14,5 @@ end Mail.defaults do delivery_method :test # in practice you'd do this in spec_helper.rb end + +Capybara.app = RegistrationApp |