public
Description: A Ruby web application framework
Homepage: http://www.mackframework.com
Clone URL: git://github.com/markbates/mack.git
Click here to lend your support to: mack and make a donation at www.pledgie.com !
Fixed mack-facets not being loaded before app_config files. [#98 state:resolved]
markbates (author)
Mon Aug 18 10:19:42 -0700 2008
commit  6839e5dee379dfc4dc5189f3ba52981ccd796ea6
tree    6ab142d21f47fb4509d12270a6ac6f96a9d337ee
parent  f9d6b8b7899187fd9c5542332b65a68982d572bb
...
1
2
 
3
4
5
...
1
2
3
4
5
6
0
@@ -1,5 +1,6 @@
0
 * [#102] New association method in data_factory
0
 * [#101] Update to file upload testing (build_file -> file_for_upload, and multipart support in put)
0
+* [#98] Fixed mack-facets not being loaded before app_config files.
0
 * [#97] Fixed sessions only working with 'local_memory' mode
0
 * [#96] Distributed Views module now uses file cache
0
 * [#92] Removed deprecated app_config.orm code.
...
2
3
4
 
5
6
7
...
2
3
4
5
6
7
8
0
@@ -2,6 +2,7 @@ require 'rake'
0
 require 'rake/testtask'
0
 require 'rake/rdoctask'
0
 require 'rubygems'
0
+require 'mack-facets'
0
 require 'application_configuration'
0
 
0
 require File.join(File.dirname(__FILE__), "mack", "initialization", "configuration.rb")
...
9
10
11
12
13
 
 
 
 
14
...
9
10
11
 
12
13
14
15
16
17
0
@@ -9,4 +9,7 @@ mack::page_cache: true
0
 mack::use_distributed_routes: false
0
 mack::distributed_app_name: fake_app
0
 
0
-mack::testing_framework: rspec
0
\ No newline at end of file
0
+mack::testing_framework: rspec
0
+
0
+mack::test_facets: <%= 24.hours %>
0
+test_facets: <%= 15.minutes %>
0
\ No newline at end of file
...
56
57
58
 
 
 
 
 
59
...
56
57
58
59
60
61
62
63
64
0
@@ -56,4 +56,9 @@ describe Mack::Configuration do
0
     
0
   end
0
   
0
+  it "should load facets before loading app config" do
0
+    app_config.mack.test_facets.should == 86400
0
+    app_config.test_facets.should == 900
0
+  end
0
+  
0
 end

Comments