Use cached DFC context

This commit is contained in:
Maikel Linke
2023-08-03 14:30:08 +10:00
parent 32cc776725
commit ff359664a9
5 changed files with 58 additions and 185 deletions

View File

@@ -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

File diff suppressed because one or more lines are too long

View File

@@ -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(