Changeset 246
- Timestamp:
- 02/29/08 13:43:51 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
rubygems/tarantula/trunk/test/relevance/tarantula/log_grabber_test.rb
r202 r246 10 10 11 11 it "can clear the log file" do 12 File.open(log_file, "w") {|f| f.p uts"sample log"}13 File.size(log_file).should == 1 112 File.open(log_file, "w") {|f| f.print "sample log"} 13 File.size(log_file).should == 10 14 14 @grabber.clear! 15 15 File.size(log_file).should == 0 … … 17 17 18 18 it "can grab the log file" do 19 File.open(log_file, "w") {|f| f.p uts"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" 21 21 File.size(log_file).should == 0 22 22 end
