summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Gemfile2
-rw-r--r--Gemfile.lock24
-rw-r--r--spec/spec_helper.rb3
3 files changed, 29 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index 812f791..ac0a0df 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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