Rakefile in comable-sample-0.7.0.beta1 vs Rakefile in comable-sample-0.7.0.beta2
- old
+ new
@@ -2,10 +2,11 @@
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
+require 'rspec/core/rake_task'
require 'rdoc/task'
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Comable'
@@ -67,18 +68,22 @@
end
end
end
end
- task default: ['app:spec:all', 'rubocop', 'brakeman:all']
+ task default: ['app:spec:all', 'jasmine', 'rubocop', 'brakeman:all']
else
- task default: ['app:spec', 'rubocop', 'brakeman']
+ task default: ['app:spec', 'jasmine', 'rubocop', 'brakeman']
end
Bundler::GemHelper.install_tasks
# from https://github.com/rspec/rspec-rails/issues/936
task 'test:prepare'
+
+task :jasmine do
+ sh 'bundle exec rake app:spec:javascript RAILS_ENV=test'
+end
task :rubocop do
sh 'rubocop'
end