Sha256: 539b40f70e4bdb6de745f223b664fc0d4bde53fe63c10ccf90795fd13f66a7a1
Contents?: true
Size: 742 Bytes
Versions: 12
Compression:
Stored size: 742 Bytes
Contents
require 'spec_helper' describe LitmusPaper::StatusFile do describe "create" do it "creates a file" do status_file = LitmusPaper::StatusFile.new("foo", :up) status_file.create("for testing") status_file.exists?.should == true end it "writes the content" do status_file = LitmusPaper::StatusFile.new("foo", :up) status_file.create("for testing") status_file.content.should match(/for testing/) end end describe "delete" do it "removes the file" do status_file = LitmusPaper::StatusFile.new("foo", :up) status_file.create("for testing") status_file.exists?.should == true status_file.delete status_file.exists?.should == false end end end
Version data entries
12 entries across 12 versions & 1 rubygems