Skip to content

Commit 6a41ccd

Browse files
authored
Merge pull request #761 from rodjek/issue-754-spec
Add spec for issue raised in #754 #756
2 parents 0c04ae7 + ad10c67 commit 6a41ccd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

spec/puppet-lint/configuration_spec.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
expect(subject.foobarbaz).to be_nil
3232
end
3333

34-
it 'should create options on the fly' do
34+
it 'should be able to explicitly add options' do
3535
subject.add_option('bar')
3636

3737
expect(subject.bar).to be_nil
@@ -40,6 +40,14 @@
4040
expect(subject.bar).to eq('aoeui')
4141
end
4242

43+
it 'should be able to add options on the fly' do
44+
expect(subject.test_option).to eq(nil)
45+
46+
subject.test_option = 'test'
47+
48+
expect(subject.test_option).to eq('test')
49+
end
50+
4351
it 'should be able to set sane defaults' do
4452
subject.defaults
4553

0 commit comments

Comments
 (0)