aboutsummaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/puppet_x/augeas/util/parser_spec.rb3
-rw-r--r--spec/unit/type/augeas_spec.rb8
2 files changed, 6 insertions, 5 deletions
diff --git a/spec/unit/puppet_x/augeas/util/parser_spec.rb b/spec/unit/puppet_x/augeas/util/parser_spec.rb
index f8b5b2b..9769d76 100644
--- a/spec/unit/puppet_x/augeas/util/parser_spec.rb
+++ b/spec/unit/puppet_x/augeas/util/parser_spec.rb
@@ -92,7 +92,8 @@ describe PuppetX::Augeas::Util::Parser do
end
it 'allows multi-character unicode hexadecimal character escapes with \\u{...}' do
- expect(parse_to_array('["\u{7}", "\u{20}", "\u{100}", "\u{2026}", "\u{1F464}", "\u{100000}", "\u{53 74 72 69 6E 67}"]')).to eq(["\a", ' ', "\u{100}", "\u{2026}", "\u{1F464}", "\u{100000}", 'String'])
+ expect(parse_to_array('["\u{7}", "\u{20}", "\u{100}", "\u{2026}", "\u{1F464}", "\u{100000}", "\u{53 74 72 69 6E 67}"]')).to eq(["\a", ' ', "\u{100}", "\u{2026}", "\u{1F464}", "\u{100000}",
+ 'String'])
end
end
diff --git a/spec/unit/type/augeas_spec.rb b/spec/unit/type/augeas_spec.rb
index ac3ffa1..f397d74 100644
--- a/spec/unit/type/augeas_spec.rb
+++ b/spec/unit/type/augeas_spec.rb
@@ -36,21 +36,21 @@ describe augeas do
params = [:name, :context, :onlyif, :changes, :root, :load_path, :type_check, :show_diff]
properties.each do |property|
- it "should have a #{property} property" do
+ it "has a #{property} property" do
expect(augeas.attrclass(property).ancestors).to be_include(Puppet::Property)
end
- it "should have documentation for its #{property} property" do
+ it "has documentation for its #{property} property" do
expect(augeas.attrclass(property).doc).to be_instance_of(String)
end
end
params.each do |param|
- it "should have a #{param} parameter" do
+ it "has a #{param} parameter" do
expect(augeas.attrclass(param).ancestors).to be_include(Puppet::Parameter)
end
- it "should have documentation for its #{param} parameter" do
+ it "has documentation for its #{param} parameter" do
expect(augeas.attrclass(param).doc).to be_instance_of(String)
end
end