Rake 0.9.1 Deprecation Warnings... #4

MattRogish opened this Issue Jun 4, 2011 · 2 comments


None yet

3 participants


When rake goes to parse lib/tasks/rspec.rake (in 1.3.2):

WARNING: Global access to Rake DSL methods is deprecated. Please Include Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method Spec::Rake::SpecTask#task called at lib/tasks/rspec.rake:28:in `initialize'

to fix:
module Spec
module Rake
class SpecTask
# Start
include ::Rake::DSL
# end
def initialize(name)

"include Rake::DSL" gets confused and looks in the Spec namespace's Rake, which doesn't have DSL, so you have to ::Rake...


This has been fixed :-)


Fixed by #11.

@dchelimsky dchelimsky closed this Dec 3, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment