From 31a5b00feec50a0a88b523bab6a36a6114e86204 Mon Sep 17 00:00:00 2001 From: machupicchubeta Date: Mon, 9 Dec 2019 17:55:23 +0900 Subject: [PATCH] Remove dependency to `shoulda-matchers` gem The test codes seems NOT to be depended on it. Ref. - https://github.com/kufu/kirico/commit/2d04d06897097f4f2572314bb70e023e1b98cb6c#diff-b979c2934ac0b4ba3f08dabfdd1b2299 --- kirico.gemspec | 1 - spec/spec_helper.rb | 16 ---------------- 2 files changed, 17 deletions(-) diff --git a/kirico.gemspec b/kirico.gemspec index e295d26..5959744 100644 --- a/kirico.gemspec +++ b/kirico.gemspec @@ -44,5 +44,4 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'pry-byebug' spec.add_development_dependency 'rake', '~> 10.0' spec.add_development_dependency 'rspec' - spec.add_development_dependency 'shoulda-matchers' end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 47f68e4..8469d63 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -5,7 +5,6 @@ require 'pry' require 'csv' require 'factory_bot' -require 'shoulda-matchers' # データ定義ファイルの配置パスを設定し、定義させる。 FactoryBot.definition_file_paths = %w[./spec/factories] @@ -21,18 +20,3 @@ end Dir['./spec/support/**/*.rb'].sort.each { |f| require f } - -Shoulda::Matchers.configure do |config| - config.integrate do |with| - # Choose a test framework: - with.test_framework :rspec - # Choose one or more libraries: - with.library :active_record - with.library :active_model - end -end - -RSpec.configure do |config| - config.include(Shoulda::Matchers::ActiveModel, type: :model) - config.include(Shoulda::Matchers::ActiveRecord, type: :model) -end