aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-12-18 19:37:41 +0000
committerLouise Crow <louise.crow@gmail.com>2012-12-18 19:37:41 +0000
commit35e7277205e7edfe140c5eea2b40549a3eb2c864 (patch)
treed1fbabdcd857db219b132ddededc45492ca49b81
parent122e37ca509671f3b8ed34fa4b235df0a868c84f (diff)
Include Rake::DSL module manually to avoid deprecation warnings as per
https://github.com/dchelimsky/rspec-rails/commit/be52a9841dde0292c7bc7ecfe39e7214b4db1cab
-rw-r--r--lib/tasks/rspec.rake3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tasks/rspec.rake b/lib/tasks/rspec.rake
index 1eee74aee..b9b234b6a 100644
--- a/lib/tasks/rspec.rake
+++ b/lib/tasks/rspec.rake
@@ -23,6 +23,9 @@ 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 ...