Sha256: 4b26baa0ff2c66b3f84670b7ccd1ee79801bab6be1e867838b8837dffa11e273
Contents?: true
Size: 643 Bytes
Versions: 40
Compression:
Stored size: 643 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.exist?(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
40 entries across 40 versions & 1 rubygems