diff options
author | Morgan Haskel <morgan@puppetlabs.com> | 2014-06-05 16:16:34 -0400 |
---|---|---|
committer | Morgan Haskel <morgan@puppetlabs.com> | 2014-06-05 16:16:34 -0400 |
commit | ffe21fc67491c4502114505c82142781d72720ab (patch) | |
tree | 7f0ee09079863a19f07e0bb999e387eedb32e17e /spec/functions/chomp_spec.rb | |
parent | f9f6e92dffa8364cfbbd92a6a65f4be4ef176d2c (diff) | |
parent | 6287a200af558d277f83b919e8409f6c798eef39 (diff) |
Merge pull request #268 from apenney/rspec3
Rspec3 changes
Diffstat (limited to 'spec/functions/chomp_spec.rb')
-rwxr-xr-x | spec/functions/chomp_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/functions/chomp_spec.rb b/spec/functions/chomp_spec.rb index e425365..d2ae287 100755 --- a/spec/functions/chomp_spec.rb +++ b/spec/functions/chomp_spec.rb @@ -5,15 +5,15 @@ describe "the chomp function" do let(:scope) { PuppetlabsSpec::PuppetInternals.scope } it "should exist" do - Puppet::Parser::Functions.function("chomp").should == "function_chomp" + expect(Puppet::Parser::Functions.function("chomp")).to eq("function_chomp") end it "should raise a ParseError if there is less than 1 arguments" do - lambda { scope.function_chomp([]) }.should( raise_error(Puppet::ParseError)) + expect { scope.function_chomp([]) }.to( raise_error(Puppet::ParseError)) end it "should chomp the end of a string" do result = scope.function_chomp(["abc\n"]) - result.should(eq("abc")) + expect(result).to(eq("abc")) end end |