Sha256: e2a4d0e1775ae0f88b017529db92bb59045bf5828ff7a5756fb90a2cacb7e5b1
Contents?: true
Size: 718 Bytes
Versions: 2
Compression:
Stored size: 718 Bytes
Contents
unless defined?(Phonenix::InstallGenerator) # why i can't find the path under root? # require 'generators/phoenix/install/install_generator' end desc "Generates a dummy app for testing" namespace :common do task :test_app do require "#{ENV['LIB_NAME']}" Phoenix::DummyGenerator.start ["--lib_name=#{ENV['LIB_NAME']}", "--quiet"] Phoenix::InstallGenerator.start ["--lib_name=#{ENV['LIB_NAME']}", "--quiet", "--auto-accept", "--skip-install-data"] puts "Setting up dummy database..." cmd = "bundle exec rake RAILS_ENV=test AUTO_ACCEPT=true" if RUBY_PLATFORM =~ /mswin/ #windows cmd += " >nul" else cmd += " >/dev/null" end system(cmd) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phoenix_core-0.2.1.beta | lib/phoenix/core/testing_support/common_rake.rb |
phoenix_core-0.2.0.beta | lib/phoenix/core/testing_support/common_rake.rb |