NopeCode

Ruby inherited method bug

This post is about the bug I found when I was writing tests for quiet_assets. I won’t show you all those tests, just a small piece:

Class.new(Rails::Application) do
  routes.append { ... }
end

All of them were passed on my laptop, but Travis-CI showed...

See the difference

Yesterday I faced the strange behaviour of the array wrapping in context of Arel. I tried to wrap something like this User.arel_table[:id] but Array(User.arel_table[:id]) and Array.wrap(User.arel_table[:id]) gave me different results. Now I’ll tell...

Prev | Page 3 of 3

Яндекс.Метрика