Commit f324c64ae3786049c0e368c1fa568a49f50e9109
1 parent
40b03f3b
Exists in
master
and in
1 other branch
Rubocop: block ending always on a new line for ease of reading
Showing
3 changed files
with
8 additions
and
15 deletions
Show diff stats
.rubocop_todo.yml
@@ -70,13 +70,6 @@ Style/AlignHash: | @@ -70,13 +70,6 @@ Style/AlignHash: | ||
70 | Style/BlockDelimiters: | 70 | Style/BlockDelimiters: |
71 | Enabled: false | 71 | Enabled: false |
72 | 72 | ||
73 | -# Offense count: 2 | ||
74 | -# Cop supports --auto-correct. | ||
75 | -Style/BlockEndNewline: | ||
76 | - Exclude: | ||
77 | - - 'spec/models/error_report_spec.rb' | ||
78 | - - 'spec/views/apps/show.atom.builder_spec.rb' | ||
79 | - | ||
80 | # Offense count: 49 | 73 | # Offense count: 49 |
81 | # Cop supports --auto-correct. | 74 | # Cop supports --auto-correct. |
82 | # Configuration parameters: EnforcedStyle, SupportedStyles. | 75 | # Configuration parameters: EnforcedStyle, SupportedStyles. |
spec/models/error_report_spec.rb
@@ -66,11 +66,13 @@ describe ErrorReport do | @@ -66,11 +66,13 @@ describe ErrorReport do | ||
66 | end | 66 | end |
67 | 67 | ||
68 | context "with notice generate by Airbrake gem" do | 68 | context "with notice generate by Airbrake gem" do |
69 | - let(:xml) { Airbrake::Notice.new( | ||
70 | - :exception => Exception.new, | ||
71 | - :api_key => 'APIKEY', | ||
72 | - :project_root => Rails.root | ||
73 | - ).to_xml } | 69 | + let(:xml) { |
70 | + Airbrake::Notice.new( | ||
71 | + :exception => Exception.new, | ||
72 | + :api_key => 'APIKEY', | ||
73 | + :project_root => Rails.root | ||
74 | + ).to_xml | ||
75 | + } | ||
74 | it 'save a notice' do | 76 | it 'save a notice' do |
75 | expect { | 77 | expect { |
76 | error_report.generate_notice! | 78 | error_report.generate_notice! |
spec/views/apps/show.atom.builder_spec.rb
1 | describe "apps/show.atom.builder", type: 'view' do | 1 | describe "apps/show.atom.builder", type: 'view' do |
2 | let(:app) { stub_model(App) } | 2 | let(:app) { stub_model(App) } |
3 | - let(:problems) { [ | ||
4 | - stub_model(Problem, :message => 'foo', :app => app) | ||
5 | - ]} | 3 | + let(:problems) { [stub_model(Problem, :message => 'foo', :app => app)] } |
6 | 4 | ||
7 | before do | 5 | before do |
8 | allow(view).to receive(:app).and_return(app) | 6 | allow(view).to receive(:app).and_return(app) |