Skip to content

Commit

Permalink
Remove empty parens.
Browse files Browse the repository at this point in the history
Stylistically, rubyists generally don't use them.
  • Loading branch information
myronmarston committed Aug 28, 2013
1 parent a1b300c commit 11b77cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/rspec/matchers/built_in/raise_error.rb
Expand Up @@ -25,7 +25,7 @@ def matches?(given_proc, negative_expectation = false)

RSpec.deprecate(
what_to_deprecate,
:replacement => "`expect { }.not_to raise_error()` (with no args)"
:replacement => "`expect { }.not_to raise_error` (with no args)"
)
end
@raised_expected_error = false
Expand Down
6 changes: 3 additions & 3 deletions spec/rspec/matchers/raise_error_spec.rb
Expand Up @@ -168,7 +168,7 @@ def expect_deprecation_with_call_site(file, line)
it "is deprecated" do
expect(RSpec).to receive(:deprecate).with(
/not_to raise_error\(message\)/,
:replacement =>"`expect { }.not_to raise_error()` (with no args)"
:replacement =>"`expect { }.not_to raise_error` (with no args)"
)
expect {raise 'blarg'}.not_to raise_error('blah')
end
Expand Down Expand Up @@ -236,7 +236,7 @@ def expect_deprecation_with_call_site(file, line)
it "is deprecated" do
expect(RSpec).to receive(:deprecate).with(
/not_to raise_error\(SpecificErrorClass\)/,
:replacement =>"`expect { }.not_to raise_error()` (with no args)"
:replacement =>"`expect { }.not_to raise_error` (with no args)"
)
expect { }.not_to raise_error(NameError)
end
Expand Down Expand Up @@ -297,7 +297,7 @@ def expect_deprecation_with_call_site(file, line)
it "is deprecated" do
expect(RSpec).to receive(:deprecate).with(
/not_to raise_error\(SpecificErrorClass, message\)/,
:replacement =>"`expect { }.not_to raise_error()` (with no args)"
:replacement =>"`expect { }.not_to raise_error` (with no args)"
)
expect {}.not_to raise_error(RuntimeError, "example message")
end
Expand Down

0 comments on commit 11b77cf

Please sign in to comment.