Sha256: 1f2879d9718f6b2c6c2312f0cc2dc1dc3612e062924bc89fb9baac587a2bde82
Contents?: true
Size: 693 Bytes
Versions: 1
Compression:
Stored size: 693 Bytes
Contents
require "spec/spec_helper" require "lib/stowaway/file_marker" describe Stowaway::FileMarker do before(:all) do @file = Stowaway::FileMarker.new('/fake/path/test.rb') end it "should return full path" do @file.fullpath.should == '/fake/path/test.rb' end it "should return name of file" do @file.name.should == 'test.rb' end it "should return path to file" do @file.path.should == '/fake/path' end it "should be equal if paths are the same" do @file.should == Stowaway::FileMarker.new('/fake/path/test.rb') end it "should not be equal if paths are different" do @file.should_not == Stowaway::FileMarker.new('/blah/test.rb') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stowaway-0.2.5 | spec/lib/file_spec.rb |