diff --git a/Gemfile b/Gemfile index 46d81be700..bbf06ea0b7 100644 --- a/Gemfile +++ b/Gemfile @@ -152,7 +152,6 @@ group :test, :development do gem "factory_bot_rails", '6.2.0', require: false gem 'fuubar', '~> 2.5.1' gem 'json_spec', '~> 1.1.4' - gem 'knapsack', require: false gem 'knapsack_pro' gem 'letter_opener', '>= 1.4.1' gem 'rspec-rails', ">= 3.5.2" diff --git a/Gemfile.lock b/Gemfile.lock index 3515da5d56..e2b0ff7d0d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -375,8 +375,6 @@ GEM jsonapi-serializer (2.2.0) activesupport (>= 4.2) jwt (2.5.0) - knapsack (4.0.0) - rake knapsack_pro (3.4.1) rake launchy (2.5.0) @@ -820,7 +818,6 @@ DEPENDENCIES json_spec (~> 1.1.4) jsonapi-serializer jwt (~> 2.3) - knapsack knapsack_pro letter_opener (>= 1.4.1) listen diff --git a/Rakefile b/Rakefile index e37edbf5b4..3a8f4a342c 100755 --- a/Rakefile +++ b/Rakefile @@ -8,6 +8,3 @@ require_relative 'config/application' Openfoodnetwork::Application.load_tasks -if !ENV['DISABLE_KNAPSACK'] && defined?(Knapsack) - Knapsack.load_tasks -end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c9bee1d80e..4b76dbb9be 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -5,14 +5,6 @@ require 'base_spec_helper' require 'database_cleaner' require 'view_component/test_helpers' -# This spec_helper.rb is being used by the custom engines in engines/. The engines are not set up to -# use Knapsack, and this provides the option to disable it when running the tests in CI services. -unless ENV['DISABLE_KNAPSACK'] - require 'knapsack' - Knapsack.tracker.config(enable_time_offset_warning: false) unless ENV['CI'] - Knapsack::Adapters::RSpecAdapter.bind -end - Capybara.javascript_driver = :chrome Capybara.default_max_wait_time = 30 Capybara.disable_animation = true