lib/hanami/generators/application/app/Rakefile.rspec.tt in hanami-0.7.3 vs lib/hanami/generators/application/app/Rakefile.rspec.tt in hanami-0.8.0
- old
+ new
@@ -1,6 +1,9 @@
require 'rake'
require 'hanami/rake_tasks'
-require 'rspec/core/rake_task'
-RSpec::Core::RakeTask.new(:spec)
-task default: :spec
+begin
+ require 'rspec/core/rake_task'
+ RSpec::Core::RakeTask.new(:spec)
+ task default: :spec
+rescue LoadError
+end