Sha256: 636833250216d736e154e72e0658fee34c728b7002cbdecb3595bb3a1c7d7ed6
Contents?: true
Size: 788 Bytes
Versions: 3
Compression:
Stored size: 788 Bytes
Contents
require 'spec_helper' describe PointRbFile do it "has a path, content" do PointRbFile.new('path', 'content') end it "can be created" do file = PointRbFile.new('path', 'content') file.base_dir = working_directory file.create file_path = File.join(working_directory, 'path') result = File.exists?(file_path) expect(result).to eq(true) end it "returns the full path" do file = PointRbFile.new('path', 'content') file.base_dir = working_directory check = File.join(working_directory, 'path') expect(file.full_path).to eq(check) end it "returns path if it starts with '/'" do path = '/path' file = PointRbFile.new(path, 'content') file.base_dir = working_directory expect(file.full_path).to eq(path) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pointrb-0.1.2 | spec/pointrb_file/pointrb_file_spec.rb |
pointrb-0.1.1 | spec/pointrb_file/pointrb_file_spec.rb |
pointrb-0.1.0 | spec/pointrb_file/pointrb_file_spec.rb |