Sha256: 55dbb9f45cf915f11d5883fa9d42baeae00691476c64f4cdd87c922ff74617bd
Contents?: true
Size: 591 Bytes
Versions: 26
Compression:
Stored size: 591 Bytes
Contents
require 'bundler/gem_tasks' require 'rake/testtask' require 'shellwords' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.libs << 'test' t.pattern = 'test/**/*_test.rb' t.verbose = false end namespace :dummy do namespace :npm do desc "Run npm install for dummy app" task :install do dummy_dir = Bundler.root.join 'test/dummy' sh "cd #{Shellwords.shellescape(dummy_dir)} && npm install" do |ok, res| fail "Error running npm install in #{dummy_dir}." unless ok end end end end task :test => ['dummy:npm:install'] task :default => :test
Version data entries
26 entries across 26 versions & 1 rubygems