Load referenced lib class for independent spec run

This spec file tried to access a class without loading the code. That
worked in usual spec runs when other specs were run first which
loaded the whole lib directory.
This commit is contained in:
Maikel Linke
2021-09-27 17:21:35 +10:00
parent 6a50f68b52
commit f17cf1f1f4

View File

@@ -1,6 +1,7 @@
# frozen_string_literal: true
require 'spec_helper'
require 'open_food_network/address_finder'
describe Api::Admin::SubscriptionCustomerSerializer do
let(:address) { build(:address) }