summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/puppet/provider/file_line/ruby_spec.rb2
-rwxr-xr-xspec/unit/puppet/type/file_line_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/puppet/provider/file_line/ruby_spec.rb b/spec/unit/puppet/provider/file_line/ruby_spec.rb
index 5eff09a..792391a 100755
--- a/spec/unit/puppet/provider/file_line/ruby_spec.rb
+++ b/spec/unit/puppet/provider/file_line/ruby_spec.rb
@@ -85,7 +85,7 @@ describe provider_class do
:replace => 'asgadga',
}
)
- }.to raise_error(Puppet::Error, /Invalid value "asgadga"\. Valid values are true, false, yes, no\./)
+ }.to raise_error(Puppet::Error, /Invalid value "asgadga"\. Valid values are true, false\./)
end
end
context "when matching" do
diff --git a/spec/unit/puppet/type/file_line_spec.rb b/spec/unit/puppet/type/file_line_spec.rb
index 58c88e3..f1430f2 100755
--- a/spec/unit/puppet/type/file_line_spec.rb
+++ b/spec/unit/puppet/type/file_line_spec.rb
@@ -50,7 +50,7 @@ describe Puppet::Type.type(:file_line) do
expect(file_line[:ensure]).to eq :present
end
it 'should default to replace => true' do
- expect(file_line[:replace]).to eq true
+ expect(file_line[:replace]).to eq :true
end
it "should autorequire the file it manages" do