I'm trying to be diligent about checking my rake
tasks with RSpec tests, but in the process of feeling my way around I seem to have hit a wall. I've got a really simple RSpec test that looks like this:
# ./test/meta_spec.rb
describe "Rake tasks" do
require 'rake'
before(:each) do
@rake = Rake::Application.new
@rake.load_rakefile # => Error here!
Rake.application = @rake