test/unit/hygiene_test.rb in iqvoc-4.1.0 vs test/unit/hygiene_test.rb in iqvoc-4.1.1
- old
+ new
@@ -1,8 +1,8 @@
# encoding: UTF-8
-# Copyright 2011 innoQ Deutschland GmbH
+# Copyright 2011-2013 innoQ Deutschland GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@@ -24,10 +24,10 @@
tab = "\t"
space = " "
assert_no_occurrence "#{space}#{tab}\|#{tab}#{space}", "mixed whitespace", true
end
- def assert_no_occurrence(pattern, error_message, extended=false)
+ def assert_no_occurrence(pattern, error_message, extended = false)
extra_options = extended ? "E" : ""
lines = `git grep -In#{extra_options} '#{pattern}' | grep -v '^vendor/'`
assert_not_equal 0, $?.to_i, "#{error_message}:\n#{lines}"
end