Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Include the Rake::DSL module manually to remove deprecation messages from #11

Merged
merged 2 commits into from

2 participants

@ngan

Include the Rake::DSL module manually to remove deprecation messages from Rake 0.9.2.

@dchelimsky
Owner

Dup of rspec/rspec-core#437, already fixed.

@dchelimsky dchelimsky closed this
@ngan

I thought rspec-core is for Rspec 2? We're still on Rspec 1, using rspec-rails 1...

@dchelimsky dchelimsky reopened this
@dchelimsky
Owner

You're correct - I didn't notice which repo this was in.

@ngan

Any plans on merging this David?

@dchelimsky
Owner

Needs to be wrapped in an if_defined?(Rake::DSL) - be glad to merge it if you make that update.

@ngan

Done.

@dchelimsky dchelimsky merged commit be52a98 into dchelimsky:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 15, 2011
  1. @ngan
Commits on Aug 22, 2011
  1. @ngan
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 generators/rspec/templates/rspec.rake
View
4 generators/rspec/templates/rspec.rake
@@ -24,6 +24,10 @@ rescue MissingSourceFile
module Spec
module Rake
class SpecTask
+ if defined?(::Rake::DSL)
+ include ::Rake::DSL
+ end
+
def initialize(name)
task name do
# if rspec-rails is a configured gem, this will output helpful material and exit ...
Something went wrong with that request. Please try again.