public
Fork of vigetlabs/crash_cart
Description: Tools to manage ExpressionEngine ... maybe.
Clone URL: git://github.com/reagent/crash_cart.git
Search Repo:
Templates now have associated preferences
reagent (author)
Tue May 13 18:28:56 -0700 2008
commit  54a3515aadffd0867e1dcff90e84b6f7b9509ae4
tree    a4b183f8f584484c6f650698ff91e252d1ffdcc7
parent  15983945956f3bf67b17e601ec89c09f32cb5f1d
...
29
30
31
 
 
 
 
32
33
34
...
29
30
31
32
33
34
35
36
37
38
0
@@ -29,6 +29,10 @@
0
         self.template_name
0
       end
0
       
0
+ def preferences
0
+ self.site.preferences[:template]
0
+ end
0
+
0
       def save_file
0
         self.file.save if self.save_template_file?
0
       end
...
41
42
43
 
 
 
 
44
45
46
...
41
42
43
44
45
46
47
48
49
50
0
@@ -41,6 +41,10 @@
0
       @template.expects(:save_file).with(nil)
0
       @template.save
0
     end
0
+
0
+ it "should have associated preferences" do
0
+ @template.site.preferences[:template].should == @template.preferences
0
+ end
0
 
0
   end
0
 

Comments

    No one has commented yet.