File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
spec/overcommit/hook/pre_commit Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 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
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
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
You can’t perform that action at this time.
0 commit comments