Rakefile in rspec-pending_for-0.1.6 vs Rakefile in rspec-pending_for-0.1.7
- old
+ new
@@ -1,7 +1,14 @@
require 'bundler/gem_tasks'
-require 'rspec/core/rake_task'
-require 'wwtd/tasks'
-RSpec::Core::RakeTask.new(:spec)
+# rubocop:disable Lint/HandleExceptions
+begin
+ require 'wwtd/tasks'
+ require 'rspec/core/rake_task'
+ RSpec::Core::RakeTask.new(:spec)
+ task :test => :spec
+rescue LoadError
+ # puts "failed to load wwtd or rspec, probably because bundled --without-development"
+end
+# rubocop:enable Lint/HandleExceptions
-task default: :spec
+task :default => :test