We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a3fa9b commit 4a9a7ceCopy full SHA for 4a9a7ce
2 files changed
lib/csv2db/config.rb
@@ -16,7 +16,7 @@ def local_storage_host
16
end
17
18
def file_attachment_name
19
- @file_attachment_name ||= :csv_attachment
+ @file_attachment_name ||= :file_attachment
20
21
22
spec/models/concerns/csv2db/import_spec.rb
@@ -120,6 +120,8 @@ class TestModel < ActiveRecord::Base
120
121
before do
122
allow(TestModel).to receive(:has_one_attached)
123
+ allow(TestModel).to receive(:alias_method)
124
+ .with(:file_attachment, :file_attachment).and_return(nil)
125
TestModel.include(Csv2db::ActiveStorageAdapter)
126
allow(subject).to receive(:file_attachment).and_return(attachment_spy)
127
0 commit comments