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 316 Style/SpaceBeforeBlockBraces:
317 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 319 # Offense count: 75
326 320 # Cop supports --auto-correct.
327 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 23  
24 24 it "should return JSON by default" do
25 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 27 end
28 28  
29 29 it "should return the correct problem" do
... ... @@ -67,7 +67,7 @@ describe Api::V1::ProblemsController, type: 'controller' do
67 67  
68 68 it "should return JSON if JSON is requested" do
69 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 71 end
72 72  
73 73 it "should return XML if XML is requested" do
... ... @@ -77,7 +77,7 @@ describe Api::V1::ProblemsController, type: 'controller' do
77 77  
78 78 it "should return JSON by default" do
79 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 81 end
82 82  
83 83 describe "given a date range" do
... ...