diff options
-rw-r--r-- | Gemfile | 1 | ||||
-rw-r--r-- | Gemfile.lock | 6 | ||||
-rw-r--r-- | spec/spec_helper.rb | 2 |
3 files changed, 8 insertions, 1 deletions
@@ -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") |