Skip to content

Commit

Permalink
Rubocop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Mar 24, 2017
1 parent 74684cf commit 06f52e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/control/test/workflow_manager_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@
end

describe "#addon_control_file" do
# setup fake products and their packages
let(:repo_id) { 42 }
let(:product_package) { "foo-release" }
let(:product) { { "name" => "foo", "source" => repo_id, "product_package" => product_package } }
Expand Down Expand Up @@ -400,11 +401,11 @@
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
expect{subject.addon_control_dir(src_id)}.to_not change{File.exist?(path)}
expect { subject.addon_control_dir(src_id) }.to_not change { File.exist?(path) }
end
end

Expand Down

0 comments on commit 06f52e3

Please sign in to comment.