<%- if bundler? -%> require 'rspec/core/rake_task' RSpec::Core::RakeTask.new <%- else -%> begin gem 'rspec', '<%= @rspec_dependency %>' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new rescue LoadError => e task :spec do abort "Please run `gem install rspec` to install RSpec." end end <%- end -%> task :default => :spec