summaryrefslogtreecommitdiff
path: root/spec/functions/union_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functions/union_spec.rb')
-rwxr-xr-xspec/functions/union_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/functions/union_spec.rb b/spec/functions/union_spec.rb
index 0d282ca..706f4cb 100755
--- a/spec/functions/union_spec.rb
+++ b/spec/functions/union_spec.rb
@@ -5,15 +5,15 @@ describe "the union function" do
let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
- Puppet::Parser::Functions.function("union").should == "function_union"
+ expect(Puppet::Parser::Functions.function("union")).to eq("function_union")
end
it "should raise a ParseError if there are fewer than 2 arguments" do
- lambda { scope.function_union([]) }.should( raise_error(Puppet::ParseError) )
+ expect { scope.function_union([]) }.to( raise_error(Puppet::ParseError) )
end
it "should join two arrays together" do
result = scope.function_union([["a","b","c"],["b","c","d"]])
- result.should(eq(["a","b","c","d"]))
+ expect(result).to(eq(["a","b","c","d"]))
end
end