summaryrefslogtreecommitdiff
path: root/spec/functions/parsejson_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functions/parsejson_spec.rb')
-rwxr-xr-xspec/functions/parsejson_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/functions/parsejson_spec.rb b/spec/functions/parsejson_spec.rb
index f179ac1..1dd41b9 100755
--- a/spec/functions/parsejson_spec.rb
+++ b/spec/functions/parsejson_spec.rb
@@ -5,11 +5,11 @@ describe "the parsejson function" do
let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
- Puppet::Parser::Functions.function("parsejson").should == "function_parsejson"
+ expect(Puppet::Parser::Functions.function("parsejson")).to eq("function_parsejson")
end
it "should raise a ParseError if there is less than 1 arguments" do
- lambda { scope.function_parsejson([]) }.should( raise_error(Puppet::ParseError))
+ expect { scope.function_parsejson([]) }.to( raise_error(Puppet::ParseError))
end
it "should convert JSON to a data structure" do
@@ -17,6 +17,6 @@ describe "the parsejson function" do
["aaa","bbb","ccc"]
EOS
result = scope.function_parsejson([json])
- result.should(eq(['aaa','bbb','ccc']))
+ expect(result).to(eq(['aaa','bbb','ccc']))
end
end