Sha256: b5aad92b2e10303b177d86b5be3496a4135c657af7e038b0cc3cf4a0c3351e32
Contents?: true
Size: 666 Bytes
Versions: 3
Compression:
Stored size: 666 Bytes
Contents
require 'spec_helper' describe Directory do it "has a path and a base dir" do Directory.new('path', 'basedir') end it "can be created" do dir = Directory.new('path', working_directory) dir.create dir_path = File.join(working_directory, 'path') result = File.exists?(dir_path) expect(result).to eq(true) end it "returns the full path" do dir = Directory.new('path', working_directory) check = File.join(working_directory, 'path') expect(dir.full_path).to eq(check) end it "returns path if it starts with '/'" do path = '/path' dir = Directory.new(path) expect(dir.full_path).to eq(path) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pointrb-0.1.2 | spec/directory/directory_spec.rb |
pointrb-0.1.1 | spec/directory/directory_spec.rb |
pointrb-0.1.0 | spec/directory/directory_spec.rb |