Sha256: ee5cdcde82678754c9e22aa8949e57ed2be2dbb452e752c91174c5913a205d8c
Contents?: true
Size: 511 Bytes
Versions: 4
Compression:
Stored size: 511 Bytes
Contents
require 'writer' describe Writer do after :all do delete_files end it "creates today's file, blank" do file = Writer.write! file.read.should == "\n" end it "plays well with nils" do file = Writer.write!(nil, nil) file.read.should == "\n" end it "uses your custom name" do filename = "My custom filename.txt" Writer.write!(filename) File.delete(filename) end end def delete_files Dir.glob("[^README]*.md") do |filename| File.delete(filename) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
writer-0.4.1.1 | spec/writer_spec.rb |
writer-0.4.1 | spec/writer_spec.rb |
writer-0.4.0.1 | spec/writer_spec.rb |
writer-0.4.0 | spec/writer_spec.rb |