I came across a curious rake behavior, in which my rakefile required a file
that (accidentally) required the rakefile itself.

It makes rake execute tasks twice.

rake, version 0.4.15

--- rakefile---
require 'a'
task :one
    puts :one
end
----a.rb---
require 'rakefile'
-----------

rake one
#=>
one
one