Description: avoid the lib directory in autopkgtests
 The autodep8 ruby tests remove the lib directory, to use the installed library.
Author: Stefano Rivera <stefanor@debian.org>
Forwarded: not-needed

--- a/spec/foodcritic/command_line_spec.rb
+++ b/spec/foodcritic/command_line_spec.rb
@@ -42,23 +42,23 @@
     end
 
     it "returns true if the specified directory exists" do
-      assert FoodCritic::CommandLine.new(["lib"]).valid_paths?
+      assert FoodCritic::CommandLine.new(["spec"]).valid_paths?
     end
 
     it "returns false if the specified directory does not exist" do
-      refute FoodCritic::CommandLine.new(["lib2"]).valid_paths?
+      refute FoodCritic::CommandLine.new(["spec2"]).valid_paths?
     end
 
     it "returns true if the specified file exists" do
-      assert FoodCritic::CommandLine.new(["lib/foodcritic.rb"]).valid_paths?
+      assert FoodCritic::CommandLine.new(["spec/spec_helper.rb"]).valid_paths?
     end
 
     it "returns true if both specified paths exist" do
-      assert FoodCritic::CommandLine.new(["lib", "lib/foodcritic.rb"]).valid_paths?
+      assert FoodCritic::CommandLine.new(["spec", "spec/spec_helper.rb"]).valid_paths?
     end
 
     it "returns false if any on the specified paths do not exist" do
-      refute FoodCritic::CommandLine.new(["lib", "lib2"]).valid_paths?
+      refute FoodCritic::CommandLine.new(["spec", "spec2"]).valid_paths?
     end
   end
 
--- a/spec/foodcritic/linter_spec.rb
+++ b/spec/foodcritic/linter_spec.rb
@@ -54,6 +54,7 @@
   end
 
 
+ if !ENV.has_key? 'ADTTMP'
   describe "#load_files!" do
     let(:default_rules_file) do
       File.expand_path(File.join(File.dirname(__FILE__), '../../lib/foodcritic/rules.rb'))
@@ -96,5 +97,6 @@
     end
 
   end
+ end
 
 end
