From 40428a02008e474d798c77022e6460860c8c6f51 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 10 Sep 2017 13:35:33 +0200 Subject: Add test dependency to rspec-html-matchers --- Gemfile | 1 + Gemfile.lock | 6 +++++- spec/spec_helper.rb | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) 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") -- cgit v1.2.3