Sha256: 07fbece7b633d626b74b077159469e9f13e31796558b19235cdcd93138fac4f7

Contents?: true

Size: 630 Bytes

Versions: 3

Compression:

Stored size: 630 Bytes

Contents

require 'bundler'
begin
  Bundler.setup
  Bundler::GemHelper.install_tasks
rescue
  raise 'You need to install the bundle first.'
end

require 'rake/testtask'
require 'fileutils'

desc 'Default: run generator and javascript tests'
task default: [:test, :test_javascript]

Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
  t.warning = false
end

task :test_javascript do
  exec 'cd test/dummy && bundle exec rake spec:javascript'
end

task :clean_tmp do
  FileUtils.rm_rf('test/tmp')
end

Rake::Task['test'].enhance do
  Rake::Task['clean_tmp'].invoke
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bootbox_crud-0.2.1 Rakefile
bootbox_crud-0.2.0 Rakefile
bootbox_crud-0.1.1.7 Rakefile