Skip to content

Commit

Permalink
make test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
rajyan committed Sep 13, 2023
1 parent 029bc74 commit 1199008
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/orm/activerecord_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1991,11 +1991,12 @@ def reload(*)
end

it "should not break uploading file" do
@event.image = stub_file('test.jpeg')
@event.image = stub_file('old.jpeg')
@event.image = stub_file('new.jpeg')
@event.dup

expect(@event.save).to be_truthy
expect(@event.image.path).to eq public_path('uploads/test.jpeg')
expect(@event.image.path).to eq public_path('uploads/new.jpeg')
expect(File.exist?(@event.image.path)).to be_truthy
end
end
Expand Down

0 comments on commit 1199008

Please sign in to comment.