mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-03 06:59:14 +00:00
Adds knapsack_pro to the stack; updates configs
This commit is contained in:
4
Gemfile
4
Gemfile
@@ -153,6 +153,7 @@ group :test, :development do
|
||||
gem 'fuubar', '~> 2.5.1'
|
||||
gem 'json_spec', '~> 1.1.4'
|
||||
gem 'knapsack', require: false
|
||||
gem 'knapsack_pro', require: false
|
||||
gem 'letter_opener', '>= 1.4.1'
|
||||
gem 'rspec-rails', ">= 3.5.2"
|
||||
gem 'rspec-retry', require: false
|
||||
@@ -168,6 +169,9 @@ group :test do
|
||||
gem 'simplecov', require: false
|
||||
gem 'test-prof', require: false
|
||||
gem 'vcr', require: false
|
||||
gem 'test-prof'
|
||||
gem 'vcr'
|
||||
>>>>>>> 7f0d4cc24 (Adds knapsack_pro to the stack; updates configs)
|
||||
gem 'webmock', require: false
|
||||
# See spec/spec_helper.rb for instructions
|
||||
# gem 'perftools.rb'
|
||||
|
||||
@@ -377,6 +377,8 @@ GEM
|
||||
jwt (2.5.0)
|
||||
knapsack (4.0.0)
|
||||
rake
|
||||
knapsack_pro (3.4.1)
|
||||
rake
|
||||
launchy (2.5.0)
|
||||
addressable (~> 2.7)
|
||||
letter_opener (1.8.1)
|
||||
@@ -819,6 +821,7 @@ DEPENDENCIES
|
||||
jsonapi-serializer
|
||||
jwt (~> 2.3)
|
||||
knapsack
|
||||
knapsack_pro
|
||||
letter_opener (>= 1.4.1)
|
||||
listen
|
||||
mime-types
|
||||
|
||||
@@ -24,12 +24,18 @@ Shoulda::Matchers.configure do |config|
|
||||
end
|
||||
end
|
||||
|
||||
# Configures knapsack_pro if not set otherwise on .github/workflows/build.yml
|
||||
unless ENV['DISABLE_KNAPSACK_PRO']
|
||||
require 'knapsack_pro'
|
||||
KnapsackPro::Adapters::RSpecAdapter.bind
|
||||
end
|
||||
|
||||
# Allow connections to selenium whilst raising errors when connecting to external sites
|
||||
require 'webmock/rspec'
|
||||
WebMock.enable!
|
||||
WebMock.disable_net_connect!(
|
||||
allow_localhost: true,
|
||||
allow: 'chromedriver.storage.googleapis.com'
|
||||
allow: ['chromedriver.storage.googleapis.com', 'api.knapsackpro.com']
|
||||
)
|
||||
|
||||
# Requires supporting ruby files with custom matchers and macros, etc,
|
||||
|
||||
@@ -13,6 +13,12 @@ unless ENV['DISABLE_KNAPSACK']
|
||||
Knapsack::Adapters::RSpecAdapter.bind
|
||||
end
|
||||
|
||||
# Configures knapsack_pro if not set otherwise on .github/workflows/build.yml
|
||||
unless ENV['DISABLE_KNAPSACK_PRO']
|
||||
require 'knapsack_pro'
|
||||
KnapsackPro::Adapters::RSpecAdapter.bind
|
||||
end
|
||||
|
||||
Capybara.javascript_driver = :chrome
|
||||
Capybara.default_max_wait_time = 30
|
||||
Capybara.disable_animation = true
|
||||
|
||||
@@ -9,4 +9,5 @@ VCR.configure do |config|
|
||||
config.configure_rspec_metadata!
|
||||
config.filter_sensitive_data('<HIDDEN_KEY>') { ENV['STRIPE_SECRET_TEST_API_KEY'] }
|
||||
config.filter_sensitive_data('<HIDDEN_CUSTOMER>') { ENV['STRIPE_CUSTOMER'] }
|
||||
config.ignore_hosts('localhost', '127.0.0.1', '0.0.0.0', 'api.knapsackpro.com')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user