Commit f74c90f6 authored by Micaël Bergeron's avatar Micaël Bergeron

fix the failing specs

parent 1b5272db
......@@ -50,5 +50,4 @@ module Avatarable
url_base + avatar.url
end
end
......@@ -56,7 +56,7 @@ module ObjectStorage
paths.include?(upload.path) &&
upload.model_id == model.id &&
upload.model_type == model.base_class.sti_name
upload.model_type == model.class.base_class.sti_name
end
end
end
......
......@@ -4,7 +4,7 @@ shared_context 'with storage' do |store, **stub_params|
end
end
shared_examples "migrates" do |to_store: , from_store: nil|
shared_examples "migrates" do |to_store:, from_store: nil|
let(:to) { to_store }
let(:from) { from_store || subject.object_store }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment