Skip to content

Commit

Permalink
Enable a test
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Mar 24, 2017
1 parent c411707 commit 74684cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/control/test/workflow_manager_test.rb
Expand Up @@ -383,14 +383,15 @@
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

it "returns a directory path" do
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
Expand All @@ -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
Expand Down

0 comments on commit 74684cf

Please sign in to comment.