mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-26 05:55:15 +00:00
Use cached DFC context
This commit is contained in:
@@ -91,13 +91,6 @@ RSpec.configure do |config|
|
||||
expectations.syntax = :expect
|
||||
end
|
||||
|
||||
config.around(:each, vcr: true) do |example|
|
||||
# The DFC Connector fetches the context when loaded.
|
||||
VCR.use_cassette("dfc-context") do
|
||||
example.run
|
||||
end
|
||||
end
|
||||
|
||||
# Enable caching in any specs tagged with `caching: true`.
|
||||
config.around(:each, :caching) do |example|
|
||||
caching = ActionController::Base.perform_caching
|
||||
|
||||
177
spec/fixtures/vcr_cassettes/dfc-context.yml
vendored
177
spec/fixtures/vcr_cassettes/dfc-context.yml
vendored
File diff suppressed because one or more lines are too long
@@ -3,7 +3,7 @@
|
||||
require 'spec_helper'
|
||||
require Rails.root.join('lib/data_food_consortium/connector/connector')
|
||||
|
||||
describe DataFoodConsortium::Connector::Importer, vcr: true do
|
||||
describe DataFoodConsortium::Connector::Importer do
|
||||
let(:connector) { DataFoodConsortium::Connector::Connector.instance }
|
||||
let(:enterprise) do
|
||||
DataFoodConsortium::Connector::Enterprise.new(
|
||||
|
||||
Reference in New Issue
Block a user