Skip to content

Commit efeb174

Browse files
committed
Add spec for redhat-openstack#123
I may have made this configuration file up
1 parent c6dcad2 commit efeb174

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

spec/unit/puppet/util/ini_file_spec.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,22 @@
244244
subject.get_value("khotkeys", "{d03619b6-9b3c-48cc-9d9c-a2aadb485550}").should == "Search,none,Search"
245245
end
246246
end
247+
248+
context 'Configuration with colons in setting names' do
249+
let(:sample_content) do
250+
template = <<-EOS
251+
[Drive names]
252+
A:=5¼" Floppy
253+
B:=3½" Floppy
254+
C:=Winchester
255+
EOS
256+
template.split("\n")
257+
end
258+
259+
it "should expose settings for sections" do
260+
subject.get_value("Drive names", "A:").should eq '5¼" Floppy'
261+
subject.get_value("Drive names", "B:").should eq '3½" Floppy'
262+
subject.get_value("Drive names", "C:").should eq 'Winchester'
263+
end
264+
end
247265
end

0 commit comments

Comments
 (0)