Skip to content

Commit a3b376c

Browse files
committed
Fix RuboCop issues
1 parent b347dea commit a3b376c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

spec/overcommit/hook/pre_commit/solargraph_spec.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
expect(messages.first.line).to eq 36
7878
end
7979
it 'parses and returns error message content' do
80-
expect(messages.first.content).to eq '/home/username/src/solargraph-rails/file1.rb:36 - Unresolved constant Solargraph::Parser::Legacy::NodeChainer'
80+
msg = '/home/username/src/solargraph-rails/file1.rb:36 - Unresolved constant Solargraph::Parser::Legacy::NodeChainer'
81+
expect(messages.first.content).to eq msg
8182
end
8283
end
8384
end
@@ -86,9 +87,9 @@
8687
context 'but it reports no typechecking issues' do
8788
let(:stdout) do
8889
normalize_indent(<<-MSG)
89-
Typecheck finished in 8.095239999704063 seconds.
90-
0 problems found in 0 of 16 files.
91-
MSG
90+
Typecheck finished in 8.095239999704063 seconds.
91+
0 problems found in 0 of 16 files.
92+
MSG
9293
end
9394

9495
context 'with no stderr output' do
@@ -101,7 +102,7 @@
101102
context 'with stderr output' do
102103
let(:stderr) { 'something' }
103104
it 'should raise' do
104-
expect { messages }.to raise_error(Overcommit::Exceptions::MessageProcessingError)
105+
expect { messages }.to raise_error(Overcommit::Exceptions::MessageProcessingError)
105106
end
106107
end
107108
end

0 commit comments

Comments
 (0)