From: Stefano Rivera <stefanor@debian.org>
Date: Sat, 19 May 2018 22:27:57 +0200
Subject: avoid the lib directory in autopkgtests

The autodep8 ruby tests remove the lib directory, to use the installed library.
Forwarded: not-needed
---
 spec/unit/command_line_spec.rb | 10 +++++-----
 spec/unit/linter_spec.rb       |  2 ++
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/spec/unit/command_line_spec.rb b/spec/unit/command_line_spec.rb
index 4d44863..5876ab7 100644
--- a/spec/unit/command_line_spec.rb
+++ b/spec/unit/command_line_spec.rb
@@ -42,23 +42,23 @@ describe FoodCritic::CommandLine do
     end
 
     it "returns true if the specified directory exists" do
-      expect(FoodCritic::CommandLine.new(["lib"]).valid_paths?).to be_truthy
+      expect(FoodCritic::CommandLine.new(["spec"]).valid_paths?).to be_truthy
     end
 
     it "returns false if the specified directory does not exist" do
-      expect(FoodCritic::CommandLine.new(["lib2"]).valid_paths?).to be_falsey
+      expect(FoodCritic::CommandLine.new(["spec2"]).valid_paths?).to be_falsey
     end
 
     it "returns true if the specified file exists" do
-      expect(FoodCritic::CommandLine.new(["lib/foodcritic.rb"]).valid_paths?).to be_truthy
+      expect(FoodCritic::CommandLine.new(["spec/foodcritic.rb"]).valid_paths?).to be_truthy
     end
 
     it "returns true if both specified paths exist" do
-      expect(FoodCritic::CommandLine.new(["lib", "lib/foodcritic.rb"]).valid_paths?).to be_truthy
+      expect(FoodCritic::CommandLine.new(["spec", "spec/foodcritic.rb"]).valid_paths?).to be_truthy
     end
 
     it "returns false if any on the specified paths do not exist" do
-      expect(FoodCritic::CommandLine.new(%w{lib lib2}).valid_paths?).to be_falsey
+      expect(FoodCritic::CommandLine.new(%w{spec spec2}).valid_paths?).to be_falsey
     end
   end
 
diff --git a/spec/unit/linter_spec.rb b/spec/unit/linter_spec.rb
index b8308a0..972da58 100644
--- a/spec/unit/linter_spec.rb
+++ b/spec/unit/linter_spec.rb
@@ -78,6 +78,7 @@ describe FoodCritic::Linter do
     end
   end
 
+ if !ENV.has_key? "ADTTMP"
   describe "#load_files!" do
     let(:default_rule_files) do
       # an array of each of the absolute paths to the default rules
@@ -104,4 +105,5 @@ describe FoodCritic::Linter do
       linter.load_rules!(:include_rules => include_rules)
     end
   end
+ end
 end
