diff --git a/Gemfile b/Gemfile index 3bbfec2b..7bc1d784 100644 --- a/Gemfile +++ b/Gemfile @@ -151,7 +151,7 @@ group :test do gem 'poltergeist' gem 'phantomjs', :require => 'phantomjs/poltergeist' # Set of rails validations matchers to describe models - gem 'shoulda' + gem 'shoulda-matchers', require: false # Extracted from RSpec 3 stub_model and mock_model gem 'rspec-activemodel-mocks' gem 'timecop' diff --git a/Gemfile.lock b/Gemfile.lock index 6a948871..5f533189 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -376,10 +376,6 @@ GEM sass (~> 3.2.2) sprockets (~> 2.8, < 2.12) sprockets-rails (~> 2.0) - shoulda (3.5.0) - shoulda-context (~> 1.0, >= 1.0.1) - shoulda-matchers (>= 1.4.1, < 3.0) - shoulda-context (1.2.1) shoulda-matchers (2.6.1) activesupport (>= 3.0.0) simplecov (0.8.2) @@ -496,7 +492,7 @@ DEPENDENCIES rspec-rails rubocop sass-rails (>= 4.0.2) - shoulda + shoulda-matchers spring-commands-rspec sqlite3 timecop diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 972e810d..77e1ad17 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -13,6 +13,7 @@ ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../../config/environment', __FILE__) require 'rspec/rails' +require 'shoulda/matchers' # To avoid confusion on missed migrations - use Rails 4 checker to ensure # all migrations applied ActiveRecord::Migration.maintain_test_schema!