Sha256: 66507f3b986866666768d95d88563a43e108ef97c1b12a2251ca40941bf59d7f

Contents?: true

Size: 671 Bytes

Versions: 1

Compression:

Stored size: 671 Bytes

Contents

require 'bundler/gem_tasks'
require 'rake/testtask'

Rake::TestTask.new do |t|
  t.libs = ['lib','test']
  t.test_files = FileList['test/**/*_test.rb']
  t.verbose = true
end

desc "Bootstrap development/test DB setup."
task :bootstrap do
  # ENV['DATBASE_URL'] = 'mysql://root@localhost/fourthbase_url'
  require_relative './test/dummy_app/init'
  require_relative './test/test_helpers/dummy_app_helpers'
  include FourthBase::DummyAppHelpers
  # dummy_root = File.expand_path "#{__dir__}/test/dummy_app"
  Dir.chdir(dummy_root) { `rake db:create` }
  delete_dummy_files
end

task :default do
  Kernel.system 'appraisal update'
  Kernel.system 'appraisal rake test'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fourthbase-2.1.2 Rakefile