aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2013-06-23 16:31:35 -0700
committerAndre Arko <andre@arko.net>2013-06-23 16:31:35 -0700
commit1a9bb6db180e9a2955401374a3a46ea7df4c60b0 (patch)
treef3fc368aec4982b8db3f9b720f01745cd3273642 /spec
parent4a8ff0c5b3f9192f178a9ba32db712ef9c11b091 (diff)
downloadbundler-1a9bb6db180e9a2955401374a3a46ea7df4c60b0.tar.gz
wrong place, bah
Diffstat (limited to 'spec')
-rw-r--r--spec/quality_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/quality_spec.rb b/spec/quality_spec.rb
index 45458729..fa970e92 100644
--- a/spec/quality_spec.rb
+++ b/spec/quality_spec.rb
@@ -20,7 +20,6 @@ describe "The library itself" do
failing_lines = []
File.readlines(filename).each_with_index do |line,number|
next if line =~ /^\s+#.*\s+\n$/
- next if %w(LICENCE.md).include?(line)
failing_lines << number + 1 if line =~ /\s+\n$/
end
@@ -40,10 +39,11 @@ describe "The library itself" do
end
it "has no malformed whitespace" do
+ exempt = /\.gitmodules|\.marshal|fixtures|vendor|ssl_certs|LICENSE/
error_messages = []
Dir.chdir(File.expand_path("../..", __FILE__)) do
`git ls-files`.split("\n").each do |filename|
- next if filename =~ /\.gitmodules|\.marshal|fixtures|vendor|ssl_certs/
+ next if filename =~ exempt
error_messages << check_for_tab_characters(filename)
error_messages << check_for_extra_spaces(filename)
end