public
Fork of vigetlabs/crash_cart
Description: Tools to manage ExpressionEngine ... maybe.
Clone URL: git://github.com/reagent/crash_cart.git
Search Repo:
Added logging functionality for tests
reagent (author)
Fri Jun 06 17:42:01 -0700 2008
commit  69a707aa235e3de605973a3cb702df7920571249
tree    02232ce7b97d51085cbe9c87d618cf23d7a629f3
parent  c81a1a1d5c219dc4be2418d8123881406a0ba1f6
...
2
3
4
5
 
6
7
8
9
 
10
11
 
12
13
14
15
 
...
2
3
4
 
5
6
 
 
 
7
8
9
10
11
 
 
 
12
0
@@ -2,14 +2,11 @@ ENV['ENV'] = 'test'
0
 require 'spec'
0
 require 'yaml'
0
 
0
-root_dir = File.expand_path(File.join(File.dirname(__FILE__), '..'))
0
+require File.expand_path(File.join(File.dirname(__FILE__), %w(.. lib expression_engine environment load)))
0
 
0
-config = YAML.load_file("#{root_dir}/support/config/database.yml")
0
-
0
-require "#{root_dir}/lib/expression_engine/environment/load"
0
+config = YAML.load_file("#{CRASH_CART_ROOT}/support/config/database.yml")
0
 
0
 ActiveRecord::Base.establish_connection(config['test'])
0
+ActiveRecord::Base.logger = Logger.new("#{CRASH_CART_ROOT}/support/log/test.log")
0
 
0
-Spec::Runner.configure do |config|
0
- config.mock_with :mocha
0
-end
0
+Spec::Runner.configure {|config| config.mock_with :mocha }
...
 
...
1
0
@@ -0,0 +1 @@
0
+*.log

Comments

    No one has commented yet.