Skip to content

Commit

Permalink
make test fail consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
rajyan committed Sep 12, 2023
1 parent 4127eda commit ea56ee2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/orm/activerecord_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1991,10 +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/new.jpeg')
expect(File.exist?(@event.image.path)).to be_truthy
end
end
Expand Down

0 comments on commit ea56ee2

Please sign in to comment.