Skip to content

Commit

Permalink
add a failing test case for 8066ebc
Browse files Browse the repository at this point in the history
  • Loading branch information
rajyan committed Sep 24, 2023
1 parent cfaf173 commit c7262b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/orm/activerecord_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,16 @@ def filename
expect(@event.changes).to be_blank
expect(@event).not_to be_changed
end

it "shouldn't be generated when remove_image is canceled" do
@event.image = stub_file('test.jpeg')
@event.save!
@event.remove_image = true
@event.remove_image = false

expect(@event.changes).to be_blank
expect(@event).not_to be_changed
end
end
end

Expand Down

0 comments on commit c7262b9

Please sign in to comment.