Permalink
Browse files

Merge pull request #14 from ebeigarts/rspec-warnings

Filter out annoying warnings in RSpec
  • Loading branch information...
2 parents 1b3a838 + 613f09c commit 2b1c2c1d3619f5c7e3b93a2fcc6d4b4dfca32391 @radar radar committed Apr 5, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 Commands/Validate and Save.tmCommand
View
5 Commands/Validate and Save.tmCommand
@@ -17,6 +17,11 @@ end
result = `#{compiler_ruby} -wc "$TM_FILEPATH" 2>&1`
scopes = ENV['TM_SCOPE'].split
+
+if scopes.include? 'source.ruby.rspec'
+ result.gsub!(/^.+warning: possibly useless use of == in void context$/, '')
+end
+
if scopes.include? 'source.ruby.rspec.cucumber.steps'
result.gsub!(/^.+warning: ambiguous first argument; put parentheses or even spaces$/, '')
end

0 comments on commit 2b1c2c1

Please sign in to comment.