Sha256: f942339b4bd04ccaea8ece90d8bc1dffbb668e2958f154282507a9a4f4eb0c3c
Contents?: true
Size: 644 Bytes
Versions: 7
Compression:
Stored size: 644 Bytes
Contents
require "spec_helper" describe TmpConfig do describe "#new(contents)" do it "creates a config file" do file_contents = "contents\ncontents" @tmp_config = TmpConfig.new(file_contents) tmp_config_file = File.join(@tmp_config.path, "config") expect(File.exists?(tmp_config_file)).to be_true contents = File.read(tmp_config_file) expect(contents).to eql(file_contents) @tmp_config.close end end describe "#path" do it "returns a string" do @tmp_config = TmpConfig.new("contents") expect(@tmp_config.path).to be_kind_of(String) @tmp_config.close end end end
Version data entries
7 entries across 7 versions & 1 rubygems