From 35e7277205e7edfe140c5eea2b40549a3eb2c864 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Tue, 18 Dec 2012 19:37:41 +0000 Subject: Include Rake::DSL module manually to avoid deprecation warnings as per https://github.com/dchelimsky/rspec-rails/commit/be52a9841dde0292c7bc7ecfe39e7214b4db1cab --- lib/tasks/rspec.rake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/tasks/rspec.rake') 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 ... -- cgit v1.2.3 From 421ee811940358164f7a719e50f4dd14d58c3752 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Tue, 18 Dec 2012 19:38:40 +0000 Subject: If we're not going to run the commonlib tests (and I think that's correct - they belong in commonlib and should only be run when commonlib is changed), then don't load them. Allows us not to include the rspec gem in production. --- lib/tasks/rspec.rake | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/tasks/rspec.rake') diff --git a/lib/tasks/rspec.rake b/lib/tasks/rspec.rake index b9b234b6a..d4fd4a9ff 100644 --- a/lib/tasks/rspec.rake +++ b/lib/tasks/rspec.rake @@ -55,8 +55,6 @@ end task :default => :spec task :stats => "spec:statsetup" -# XXX commonlib tests are not Ruby 1.9 compatible -#task :spec => ['spec:commonlib'] task :test => ['spec'] task :cruise => ['spec'] -- cgit v1.2.3