public
Description: Fast, Nimble PDF Writer for Ruby
Homepage: http://prawn.majesticseacreature.com
Clone URL: git://github.com/sandal/prawn.git
Fix specs to reflect the setting of colors on every page
sandal (author)
Thu Jul 24 13:59:18 -0700 2008
commit  c18d829968451c63da3c3b2fb86c783edfdebe8c
tree    4e42dd25a476153d276c85d33e22f857b3a095cc
parent  01215f4107607a2431361b5df55221a60c204e8e
...
205
206
207
208
209
 
 
210
211
212
213
214
215
 
 
216
217
218
219
220
 
 
221
222
223
...
205
206
207
 
 
208
209
210
211
212
213
 
 
214
215
216
217
218
 
 
219
220
221
222
223
0
@@ -205,19 +205,19 @@ describe "When setting colors" do
0
     @pdf.fill_color "ccff00"
0
     colors = observer(ColorObserver)
0
     
0
-    colors.fill_color_count.should == 1   
0
-    colors.stroke_color_count.should == 0
0
+    colors.fill_color_count.should == 2   
0
+    colors.stroke_color_count.should == 1
0
     @pdf.start_new_page                
0
     @pdf.stroke_color "ff00cc"  
0
     
0
     colors = observer(ColorObserver)
0
-    colors.fill_color_count.should == 2  
0
-    colors.stroke_color_count.should == 1
0
+    colors.fill_color_count.should == 3  
0
+    colors.stroke_color_count.should == 3
0
     
0
     @pdf.start_new_page
0
     colors = observer(ColorObserver)
0
-    colors.fill_color_count.should == 3
0
-    colors.stroke_color_count.should == 2
0
+    colors.fill_color_count.should == 4
0
+    colors.stroke_color_count.should == 4
0
     
0
     colors.fill_color.should   == [0.8,1.0,0.0]
0
     colors.stroke_color.should == [1.0,0.0,0.8] 

Comments