spec/integration/dotenv_loading_spec.rb in hanami-2.0.0 vs spec/integration/dotenv_loading_spec.rb in hanami-2.0.1
- old
+ new
@@ -3,9 +3,10 @@
# rubocop:disable Style/FetchEnvVar
RSpec.describe "Dotenv loading", :app_integration do
before do
@orig_env = ENV.to_h
+ allow(Hanami::Env).to receive(:loaded?).and_return(false)
end
after do
ENV.replace(@orig_env)
end