lib/zeus/templates/rails.rb in zeus-0.2.0.beta1 vs lib/zeus/templates/rails.rb in zeus-0.2.0.beta2

- old
+ new

@@ -17,11 +17,11 @@ action { Bundler.require(:default) } stage :dev do action do Bundler.require(:development) - ENV['RAILS_ENV'] = "development" + Rails.env = ENV['RAILS_ENV'] = "development" require APP_PATH Rails.application.require_environment! end command :generate, :g do @@ -55,24 +55,25 @@ end end end - stage :test do - action do - ENV['RAILS_ENV'] = "test" - Bundler.require(:test) - require APP_PATH - Rails.application.require_environment! - end + # stage :test do + # action do + # Rails.env = ENV['RAILS_ENV'] = "test" + # Bundler.require(:test) + # require APP_PATH + # Rails.application.require_environment! + # end - command :testrb do - (r = Test::Unit::AutoRunner.new(true)).process_args(ARGV) or - abort r.options.banner + " tests..." - exit r.run - end + # command :testrb do + # (r = Test::Unit::AutoRunner.new(true)).process_args(ARGV) or + # abort r.options.banner + " tests..." + # exit r.run + # end - end + # end end end end +