public
Description: StrokeDB is an embeddable distributed document database written in Ruby
Homepage: http://strokedb.com/
Clone URL: git://github.com/yrashk/strokedb.git
fix old specs with unnamed metas [#28 state:resolved]
yrashk (author)
Tue Apr 29 22:27:45 -0700 2008
commit  5b45b009e3ee3eb248f5ac96b43582823407f435
tree    bca62987d26ca3a9ae822afb51e228b842c164bd
parent  7baf51d0b769d745f286bb65eba72a99d263a7b7
...
96
97
98
99
100
 
101
102
103
...
96
97
98
 
 
99
100
101
102
0
@@ -96,8 +96,7 @@ end
0
       Slot1Diff.should_receive(:diff).with("abcdef","abcdef1").any_number_of_times.and_return("1")
0
       Slot1Diff.should_receive(:patch).with("abcdef","1").any_number_of_times.and_return("abcdef1")
0
       
0
-      # FIXME: meta without a name!
0
-      @meta = Document.create! :diff_strategy_slot1 => strategy # TODO: fix this spec, it willn't care if I say strategy_slot1
0
+      @meta = Document.create! :name => 'SomeSpecialMeta', :diff_strategy_slot1 => strategy # TODO: fix this spec, it willn't care if I say strategy_slot1
0
 
0
       @from = Document.create! :slot1 => "abcdef", :meta => @meta
0
       @to = Document.create! :slot1 => "abcdef1", :meta => @meta
...
8
9
10
11
 
12
13
14
...
29
30
31
32
 
33
34
35
...
51
52
53
54
 
55
56
57
...
8
9
10
 
11
12
13
14
...
29
30
31
 
32
33
34
35
...
51
52
53
 
54
55
56
57
0
@@ -8,7 +8,7 @@ describe "Diffing documents with slot changed and slot's diff strategy is specif
0
     Slot1Diff = Class.new(SlotDiffStrategy)
0
     Slot1Diff.should_receive(:diff).with(1,2).and_return(3)
0
 
0
-    @meta = Document.create! :diff_strategy_slot1 => 'slot_1_diff'
0
+    @meta = Document.create! :diff_strategy_slot1 => 'slot_1_diff', :name => "Slot1DiffMeta"
0
 
0
     @from = Document.create! :slot1 => 1, :meta => @meta
0
     @to = Document.create! :slot1 => 2, :meta => @meta
0
@@ -29,7 +29,7 @@ describe "Diffing documents with slot changed and slot's diff strategy is specif
0
     @store = setup_default_store
0
 
0
     Object.send!(:remove_const,'Slot1Diff') if defined?(Slot1Diff)
0
-    @meta = Document.create! :diff_strategy_slot1 => 'slot_1_diff'
0
+    @meta = Document.create! :diff_strategy_slot1 => 'slot_1_diff', :name => "Slot1DiffMeta"
0
 
0
     @from = Document.create! :slot1 => 1, :meta => @meta
0
     @to = Document.create! :slot1 => 2, :meta => @meta
0
@@ -51,7 +51,7 @@ describe "Diffing documents with slot changed and slot's diff strategy is specif
0
 
0
     Slot1Diff = Class.new
0
 
0
-    @meta = Document.create! :diff_strategy_slot1 => 'slot_1_diff'
0
+    @meta = Document.create! :diff_strategy_slot1 => 'slot_1_diff', :name => "Slot1DiffMeta"
0
 
0
     @from = Document.create! :slot1 => 1, :meta => @meta
0
     @to = Document.create! :slot1 => 2, :meta => @meta

Comments