diff options
Diffstat (limited to 'spec/models/import_export_upload_spec.rb')
-rw-r--r-- | spec/models/import_export_upload_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/import_export_upload_spec.rb b/spec/models/import_export_upload_spec.rb index e13f504b82a..9811dbf60e3 100644 --- a/spec/models/import_export_upload_spec.rb +++ b/spec/models/import_export_upload_spec.rb @@ -51,7 +51,7 @@ RSpec.describe ImportExportUpload do let(:after_commit_callbacks) { described_class._commit_callbacks.select { |cb| cb.kind == :after } } def find_callback(callbacks, key) - callbacks.find { |cb| cb.instance_variable_get(:@key) == key } + callbacks.find { |cb| cb.filter == key } end it 'export file is stored in after_commit callback' do |