Commit 4c90ca4544685cb00a0ff10af698309840e70b98

Authored by Nikita Fedyashev
1 parent f4b0333f
Exists in master and in 1 other branch production

Omit optional brackets for method invocation

spec/interactors/problem_destroy_spec.rb
... ... @@ -7,7 +7,7 @@ describe ProblemDestroy do
7 7  
8 8 context "in unit way" do
9 9 let(:problem) {
10   - problem = Problem.new()
  10 + problem = Problem.new
11 11 problem.stub(:errs).and_return(mock(:criteria, :only => [err_1, err_2]))
12 12 problem.stub(:comments).and_return(mock(:criteria, :only => [comment_1, comment_2]))
13 13 problem.stub(:delete)
... ...
spec/models/issue_trackers/fogbugz_tracker_spec.rb
... ... @@ -9,7 +9,7 @@ describe IssueTrackers::FogbugzTracker do
9 9 number = 123
10 10 @issue_link = "https://#{tracker.account}.fogbugz.com/default.asp?#{number}"
11 11 response = "<response><token>12345</token><case><ixBug>123</ixBug></case></response>"
12   - http_mock = mock()
  12 + http_mock = mock
13 13 http_mock.should_receive(:new).and_return(http_mock)
14 14 http_mock.should_receive(:request).twice.and_return(response)
15 15 Fogbugz.adapter[:http] = http_mock
... ...