Changeset 246

Show
Ignore:
Timestamp:
02/29/08 13:43:51 (8 months ago)
Author:
stu
Message:

fixed cross-platform issue (affects unit tests only). Dumb Stu...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • rubygems/tarantula/trunk/test/relevance/tarantula/log_grabber_test.rb

    r202 r246  
    1010   
    1111  it "can clear the log file" do 
    12     File.open(log_file, "w") {|f| f.puts "sample log"} 
    13     File.size(log_file).should == 11   
     12    File.open(log_file, "w") {|f| f.print "sample log"} 
     13    File.size(log_file).should == 10   
    1414    @grabber.clear! 
    1515    File.size(log_file).should == 0   
     
    1717   
    1818  it "can grab the log file" do 
    19     File.open(log_file, "w") {|f| f.puts "sample log"} 
    20     @grabber.grab!.should == "sample log\n
     19    File.open(log_file, "w") {|f| f.print "sample log"} 
     20    @grabber.grab!.should == "sample log
    2121    File.size(log_file).should == 0 
    2222  end