summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-09-10 13:35:33 +0200
committerHarald Eilertsen <haraldei@anduin.net>2017-09-10 13:35:33 +0200
commit40428a02008e474d798c77022e6460860c8c6f51 (patch)
tree666980bc3e8f69d10272ba0c401a18e607c0a5c9
parent16c477d09354fcb04aff06187efd14bf048509ec (diff)
downloadnorsk-urskog-registrations-40428a02008e474d798c77022e6460860c8c6f51.tar.gz
norsk-urskog-registrations-40428a02008e474d798c77022e6460860c8c6f51.tar.bz2
norsk-urskog-registrations-40428a02008e474d798c77022e6460860c8c6f51.zip
Add test dependency to rspec-html-matchers
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock6
-rw-r--r--spec/spec_helper.rb2
3 files changed, 8 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index d227e1f..b1683b6 100644
--- a/Gemfile
+++ b/Gemfile
@@ -11,6 +11,7 @@ gem "thin"
group :development, :test do
gem 'byebug'
gem "rspec"
+ gem "rspec-html-matchers"
gem "rack-test"
gem "capybara"
gem "selenium-webdriver"
diff --git a/Gemfile.lock b/Gemfile.lock
index 29ee34e..bc18ac0 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -81,6 +81,9 @@ GEM
rspec-expectations (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
+ rspec-html-matchers (0.9.1)
+ nokogiri (~> 1)
+ rspec (>= 3.0.0.a, < 4)
rspec-mocks (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
@@ -139,6 +142,7 @@ DEPENDENCIES
prawn
rack-test
rspec
+ rspec-html-matchers
selenium-webdriver
sinatra
sinatra-config-file
@@ -146,4 +150,4 @@ DEPENDENCIES
thin
BUNDLED WITH
- 1.12.5
+ 1.14.6
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 293bd8e..aaf466a 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -5,11 +5,13 @@ require_relative 'support/band_factory'
require_relative 'support/contact_factory'
require_relative 'support/submit_form_helper'
require 'capybara/rspec'
+require 'rspec-html-matchers'
RSpec.configure do |config|
config.include BandFactory
config.include ContactFactory
config.include SubmitFormHelper
+ config.include RSpecHtmlMatchers
config.before(:example) do
@doc_spy = spy("Prawn::Document")