Skip to content

Commit

Permalink
Merge branch 'maint/2.7.x/rspec-fix-deprecation-expect-should' into 2…
Browse files Browse the repository at this point in the history
….7.x
  • Loading branch information
Daniel Pittman committed Sep 7, 2012
2 parents dff6e53 + d260b90 commit 346f3d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/unit/parser/scope_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@
end

it "should raise NoMethodError if the method doesn't look like a function" do
expect { @scope.sprintf(["%b", 123]) }.should raise_error(NoMethodError)
expect { @scope.sprintf(["%b", 123]) }.to raise_error(NoMethodError)
end

it "should raise NoMethodError if the method looks like a function but doesn't exist" do
expect { @scope.function_fake_bs(['cows']) }.should raise_error(NoMethodError)
expect { @scope.function_fake_bs(['cows']) }.to raise_error(NoMethodError)
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/unit/ssl/certificate_authority_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def stub_ca_host

expect do
@ca.sign(@name, false, @request)
end.should_not raise_error(Puppet::SSL::CertificateAuthority::CertificateSigningError)
end.not_to raise_error(Puppet::SSL::CertificateAuthority::CertificateSigningError)
end

it "should save the resulting certificate" do
Expand Down

0 comments on commit 346f3d9

Please sign in to comment.