diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 22e94e8..eddf533 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -341,13 +341,6 @@ Style/LeadingCommentSpace: - 'spec/models/notification_service/hoiio_service_spec.rb' - 'spec/models/notification_service/pushover_service_spec.rb' -# Offense count: 6 -# Cop supports --auto-correct. -Style/MethodCallParentheses: - Exclude: - - 'spec/controllers/api/v1/notices_controller_spec.rb' - - 'spec/controllers/api/v1/problems_controller_spec.rb' - # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. diff --git a/spec/controllers/api/v1/notices_controller_spec.rb b/spec/controllers/api/v1/notices_controller_spec.rb index 79c7bb6..ef26217 100644 --- a/spec/controllers/api/v1/notices_controller_spec.rb +++ b/spec/controllers/api/v1/notices_controller_spec.rb @@ -14,7 +14,7 @@ describe Api::V1::NoticesController, type: 'controller' do it "should return JSON if JSON is requested" do get :index, :auth_token => @user.authentication_token, :format => "json" - expect { JSON.load(response.body) }.not_to raise_error() #JSON::ParserError) + expect { JSON.load(response.body) }.not_to raise_error #JSON::ParserError) end it "should return XML if XML is requested" do @@ -24,7 +24,7 @@ describe Api::V1::NoticesController, type: 'controller' do it "should return JSON by default" do get :index, :auth_token => @user.authentication_token - expect { JSON.load(response.body) }.not_to raise_error() #JSON::ParserError) + expect { JSON.load(response.body) }.not_to raise_error #JSON::ParserError) end describe "given a date range" do diff --git a/spec/controllers/api/v1/problems_controller_spec.rb b/spec/controllers/api/v1/problems_controller_spec.rb index 2cb1ade..2152430 100644 --- a/spec/controllers/api/v1/problems_controller_spec.rb +++ b/spec/controllers/api/v1/problems_controller_spec.rb @@ -13,7 +13,7 @@ describe Api::V1::ProblemsController, type: 'controller' do it "should return JSON if JSON is requested" do get :show, :auth_token => @user.authentication_token, :format => "json", :id => Problem.first.id - expect { JSON.load(response.body) }.not_to raise_error() #JSON::ParserError + expect { JSON.load(response.body) }.not_to raise_error #JSON::ParserError end it "should return XML if XML is requested" do @@ -23,7 +23,7 @@ describe Api::V1::ProblemsController, type: 'controller' do it "should return JSON by default" do get :show, :auth_token => @user.authentication_token, :id => @problem.id - expect { JSON.load(response.body) }.not_to raise_error()#JSON::ParserError) + expect { JSON.load(response.body) }.not_to raise_error#JSON::ParserError) end it "should return the correct problem" do @@ -68,7 +68,7 @@ describe Api::V1::ProblemsController, type: 'controller' do it "should return JSON if JSON is requested" do get :index, :auth_token => @user.authentication_token, :format => "json" - expect { JSON.load(response.body) }.not_to raise_error()#JSON::ParserError) + expect { JSON.load(response.body) }.not_to raise_error#JSON::ParserError) end it "should return XML if XML is requested" do @@ -78,7 +78,7 @@ describe Api::V1::ProblemsController, type: 'controller' do it "should return JSON by default" do get :index, :auth_token => @user.authentication_token - expect { JSON.load(response.body) }.not_to raise_error()#JSON::ParserError) + expect { JSON.load(response.body) }.not_to raise_error#JSON::ParserError) end describe "given a date range" do -- libgit2 0.21.2