[openstreetmap/openstreetmap-website] Fix test failures from #6351 (PR #6352)

Anton Khorev notifications at github.com
Tue Aug 26 12:48:31 UTC 2025


AntonKhorev left a comment (openstreetmap/openstreetmap-website#6352)

It can't be related to my changes, but I don't even see how it is related to anything. A test fails/passes depending on previous `Kernel.respond_to?` call. Tried on ruby 3.2.6, then 3.2.9.

```ruby
  def test_what
    # fails without this line:
    Kernel.instance_method(:respond_to?).bind_call(self, :does_not_matter_what)

    user = create(:user)
    user.avatar.attach(:io => File.open("test/gpx/fixtures/a.gif"), :filename => "a.gif")
    variant = user.avatar.variant(:resize_to_limit => [100, 100])
    image_tag variant
  end
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6352#issuecomment-3224042338
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6352/c3224042338 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250826/8cb083d8/attachment.htm>


More information about the rails-dev mailing list