dchelimsky/rspec-rails

Rake 0.9.1 Deprecation Warnings...

Closed this issue · 2 comments

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...

ngan commented

This has been fixed :-)
#11

Fixed by #11.