public
Description: FixtureReplacement rails plugin (version 2 and on)
Homepage: http://replacefixtures.rubyforge.org/
Clone URL: git://github.com/smtlaissezfaire/fixturereplacement.git
Search Repo:
* Moving DelayedEvaluationProc to 
FixtureReplacementController::DelayedEvaluationProc

git-svn-id: http://thmadb.com/public_svn/plugins/fixture_replacement2@331 
6dbbdfbd-06da-443d-8068-b1bdd22a71ef
smt (author)
Sun Mar 09 20:07:30 -0700 2008
commit  5c16b52168e61e1642b77b2db646ae070287d110
tree    42b5310aaf934a6de0e15681e3cca42f9f9ea76f
parent  3da75a0e606781f1dda4c88c40d0835d40a869be
...
18
19
20
21
 
22
23
24
...
18
19
20
 
21
22
23
24
0
@@ -18,7 +18,7 @@
0
       end
0
     
0
       def delayed_evaluation_proc
0
- ::DelayedEvaluationProc
0
+ FixtureReplacementController::DelayedEvaluationProc
0
       end
0
     
0
       def fake_active_record_instance
...
 
 
 
 
 
 
...
1
2
3
4
5
6
0
@@ -1 +1,7 @@
0
+module FixtureReplacementController
0
+ # This is here so that if someone (some how) assigns a proc
0
+ # to an accessor on an ActiveRecord object, FixtureReplacement
0
+ # won't get tripped up, and try to evaluate the proc.
0
+ class DelayedEvaluationProc < Proc; end
0
+end
...
1
2
3
4
...
 
 
 
 
0
@@ -1,5 +1 @@
0
-# This is here so that if someone (some how) assigns a proc
0
-# to an accessor on an ActiveRecord object, FixtureReplacement
0
-# won't get tripped up, and try to evaluate the proc.
0
-class DelayedEvaluationProc < Proc; end
...
1
2
3
4
5
6
7
 
 
 
 
 
 
 
8
...
1
2
 
 
 
 
 
3
4
5
6
7
8
9
10
0
@@ -1,9 +1,11 @@
0
 require File.dirname(__FILE__) + "/../spec_helper"
0
 
0
-describe DelayedEvaluationProc do
0
- it "should be a kind of proc" do
0
- DelayedEvaluationProc.superclass.should == Proc
0
- (DelayedEvaluationProc.new {}).should be_a_kind_of(Proc)
0
- end
0
+module FixtureReplacementController
0
+ describe DelayedEvaluationProc do
0
+ it "should be a kind of proc" do
0
+ DelayedEvaluationProc.superclass.should == Proc
0
+ (DelayedEvaluationProc.new {}).should be_a_kind_of(Proc)
0
+ end
0
+ end
0
 end

Comments

    No one has commented yet.