Skip to content

Instantly share code, notes, and snippets.

@tacticiankerala
Last active August 29, 2015 14:04
Show Gist options
  • Save tacticiankerala/da4e730efd69af7232a1 to your computer and use it in GitHub Desktop.
Save tacticiankerala/da4e730efd69af7232a1 to your computer and use it in GitHub Desktop.
rake-rspec-and-rubocop-karma
if Rails.env.development?
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
desc "run rspec"
RSpec::Core::RakeTask.new(:rspec)
desc "run rubocop"
RuboCop::RakeTask.new(:rubocop)
desc "js tests"
task :karma do
system 'karma run'
end
task :housekeeping => [:rspec, :rubocop, :karma]
task :default => :housekeeping
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment