diff --git a/spec/models/alchemy/attachment_spec.rb b/spec/models/alchemy/attachment_spec.rb index 39f1ff31a2..8ae673a7ba 100644 --- a/spec/models/alchemy/attachment_spec.rb +++ b/spec/models/alchemy/attachment_spec.rb @@ -36,13 +36,12 @@ module Alchemy let(:attachment) { create(:alchemy_attachment) } let(:content) do - create(:alchemy_content, :essence_file).tap do |content| - content.element.update_column(:updated_at, 3.hours.ago) - end + create(:alchemy_content, :essence_file) end before do content.essence.update(attachment: attachment) + content.element.update_column(:updated_at, 3.hours.ago) end it "touches elements" do diff --git a/spec/models/alchemy/picture_spec.rb b/spec/models/alchemy/picture_spec.rb index 2e261b0465..f2d6d1bacd 100644 --- a/spec/models/alchemy/picture_spec.rb +++ b/spec/models/alchemy/picture_spec.rb @@ -512,13 +512,12 @@ module Alchemy let(:picture) { create(:alchemy_picture) } let(:content) do - create(:alchemy_content, :essence_picture).tap do |content| - content.element.update_column(:updated_at, 3.hours.ago) - end + create(:alchemy_content, :essence_picture) end before do content.essence.update(picture: picture) + content.element.update_column(:updated_at, 3.hours.ago) end it "touches elements" do