summaryrefslogtreecommitdiff
path: root/spec/functions/swapcase_spec.rb
diff options
context:
space:
mode:
authorMorgan Haskel <morgan@puppetlabs.com>2014-06-05 16:16:34 -0400
committerMorgan Haskel <morgan@puppetlabs.com>2014-06-05 16:16:34 -0400
commitffe21fc67491c4502114505c82142781d72720ab (patch)
tree7f0ee09079863a19f07e0bb999e387eedb32e17e /spec/functions/swapcase_spec.rb
parentf9f6e92dffa8364cfbbd92a6a65f4be4ef176d2c (diff)
parent6287a200af558d277f83b919e8409f6c798eef39 (diff)
Merge pull request #268 from apenney/rspec3
Rspec3 changes
Diffstat (limited to 'spec/functions/swapcase_spec.rb')
-rwxr-xr-xspec/functions/swapcase_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/functions/swapcase_spec.rb b/spec/functions/swapcase_spec.rb
index 808b415..c6838ab 100755
--- a/spec/functions/swapcase_spec.rb
+++ b/spec/functions/swapcase_spec.rb
@@ -5,15 +5,15 @@ describe "the swapcase function" do
let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
- Puppet::Parser::Functions.function("swapcase").should == "function_swapcase"
+ expect(Puppet::Parser::Functions.function("swapcase")).to eq("function_swapcase")
end
it "should raise a ParseError if there is less than 1 arguments" do
- lambda { scope.function_swapcase([]) }.should( raise_error(Puppet::ParseError))
+ expect { scope.function_swapcase([]) }.to( raise_error(Puppet::ParseError))
end
it "should swapcase a string" do
result = scope.function_swapcase(["aaBBccDD"])
- result.should(eq('AAbbCCdd'))
+ expect(result).to(eq('AAbbCCdd'))
end
end