Sha256: 76a1c88e0a8eea94ce614e1176703b9fb11cf59a1fa6f783d28bed2320393689
Contents?: true
Size: 738 Bytes
Versions: 16
Compression:
Stored size: 738 Bytes
Contents
require 'spec_helper' describe LitmusPaper::StatusFile do describe "create" do it "creates a file" do status_file = LitmusPaper::StatusFile.new("foo", 100) status_file.create("for testing") status_file.exists?.should == true end it "writes the content" do status_file = LitmusPaper::StatusFile.new("foo", 100) status_file.create("for testing") status_file.content.should == "for testing" end end describe "delete" do it "removes the file" do status_file = LitmusPaper::StatusFile.new("foo", 100) status_file.create("for testing") status_file.exists?.should be_true status_file.delete status_file.exists?.should be_false end end end
Version data entries
16 entries across 16 versions & 1 rubygems