From 74684cfa8e3be20daf8b313d59b09c8e066449e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Slez=C3=A1k?= Date: Fri, 24 Mar 2017 09:53:35 +0100 Subject: [PATCH] Enable a test --- library/control/test/workflow_manager_test.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/control/test/workflow_manager_test.rb b/library/control/test/workflow_manager_test.rb index ef1630433..b87e5cf87 100755 --- a/library/control/test/workflow_manager_test.rb +++ b/library/control/test/workflow_manager_test.rb @@ -383,6 +383,7 @@ let(:src_id) { 3 } after do + # remove the created directory after each run to ensure the same initial state FileUtils.remove_entry(subject.addon_control_dir(src_id)) end @@ -390,7 +391,7 @@ expect(File.directory?(subject.addon_control_dir(src_id))).to be true end - context "a file already exists in the directory" do + context "a file already exists in the target directory" do let(:path) { subject.addon_control_dir(src_id) + "/test" } before do @@ -399,7 +400,7 @@ end it "removes the existing content if cleanup is requested" do - # expect{subject.addon_control_dir(src_id, cleanup: true)}.to change{File.exist?(path)}.from(true).to(false) + expect{subject.addon_control_dir(src_id, cleanup: true)}.to change{File.exist?(path)}.from(true).to(false) end it "keeps the existing content if cleanup is not requested" do