Commit e3ebbbc32ec6aacc61a917491780f7232741e6f0

Authored by Laust Rud Jacobsen
1 parent ee0cf25e
Exists in master and in 1 other branch production

Rubocop: space before comments

.rubocop_todo.yml
@@ -316,12 +316,6 @@ Style/SpaceAroundEqualsInParameterDefault: @@ -316,12 +316,6 @@ Style/SpaceAroundEqualsInParameterDefault:
316 Style/SpaceBeforeBlockBraces: 316 Style/SpaceBeforeBlockBraces:
317 Enabled: false 317 Enabled: false
318 318
319 -# Offense count: 3  
320 -# Cop supports --auto-correct.  
321 -Style/SpaceBeforeComment:  
322 - Exclude:  
323 - - 'spec/controllers/api/v1/problems_controller_spec.rb'  
324 -  
325 # Offense count: 75 319 # Offense count: 75
326 # Cop supports --auto-correct. 320 # Cop supports --auto-correct.
327 # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. 321 # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
spec/controllers/api/v1/problems_controller_spec.rb
@@ -23,7 +23,7 @@ describe Api::V1::ProblemsController, type: 'controller' do @@ -23,7 +23,7 @@ describe Api::V1::ProblemsController, type: 'controller' do
23 23
24 it "should return JSON by default" do 24 it "should return JSON by default" do
25 get :show, :auth_token => @user.authentication_token, :id => @problem.id 25 get :show, :auth_token => @user.authentication_token, :id => @problem.id
26 - expect { JSON.load(response.body) }.not_to raise_error#JSON::ParserError) 26 + expect { JSON.load(response.body) }.not_to raise_error #JSON::ParserError)
27 end 27 end
28 28
29 it "should return the correct problem" do 29 it "should return the correct problem" do
@@ -67,7 +67,7 @@ describe Api::V1::ProblemsController, type: 'controller' do @@ -67,7 +67,7 @@ describe Api::V1::ProblemsController, type: 'controller' do
67 67
68 it "should return JSON if JSON is requested" do 68 it "should return JSON if JSON is requested" do
69 get :index, :auth_token => @user.authentication_token, :format => "json" 69 get :index, :auth_token => @user.authentication_token, :format => "json"
70 - expect { JSON.load(response.body) }.not_to raise_error#JSON::ParserError) 70 + expect { JSON.load(response.body) }.not_to raise_error #JSON::ParserError)
71 end 71 end
72 72
73 it "should return XML if XML is requested" do 73 it "should return XML if XML is requested" do
@@ -77,7 +77,7 @@ describe Api::V1::ProblemsController, type: 'controller' do @@ -77,7 +77,7 @@ describe Api::V1::ProblemsController, type: 'controller' do
77 77
78 it "should return JSON by default" do 78 it "should return JSON by default" do
79 get :index, :auth_token => @user.authentication_token 79 get :index, :auth_token => @user.authentication_token
80 - expect { JSON.load(response.body) }.not_to raise_error#JSON::ParserError) 80 + expect { JSON.load(response.body) }.not_to raise_error #JSON::ParserError)
81 end 81 end
82 82
83 describe "given a date range" do 83 describe "given a date range" do