Skip to content

Commit 2c90b4b

Browse files
committed
chore: Avoid namespace for the Flodesk class.
In order to avoid Zeitwerk expectations failing.
1 parent f0c2f8e commit 2c90b4b

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

config/initializers/flodesk.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require 'services/flodesk'
1+
require 'flodesk'
22

33
key = Rails.env.test? ? 'test' : ENV['FLODESK_KEY']
44
Rails.logger.warn 'Missing FLODESK_KEY environment variable' unless key
File renamed without changes.

spec/lib/services/flodesk_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'json'
2-
require 'services/flodesk'
2+
require 'flodesk'
33

44
RSpec.describe Flodesk do
55
let(:stub) { Faraday::Adapter::Test::Stubs.new }

0 commit comments

Comments
 (0)