Skip to content

Commit 1c114f2

Browse files
Fixing issue where an invoke in the test was not being executed
[#157010541](https://www.pivotaltracker.com/story/show/157010541)
1 parent aa2f9ae commit 1c114f2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

spec/integration/build/azure_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
agent_commit
6464
)
6565

66+
# This allows the task to be ran multiple times by different tests
67+
Rake::Task['build:azure'].reenable
6668
Rake::Task['build:azure'].invoke
6769

6870
expect(File.read(File.join(@output_directory, "bosh-stemcell-#{version}-azure-vhd-uri.txt"))).to eq 'some-disk-image-url'

spec/tasks/build/azure_rake_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
let(:env_var) { 'some_env_var' }
3030

3131
before do
32-
# This allows the task to be ran multiple times in the same context.
33-
# If it's missing, then the task will only run one by the first test
32+
# This allows the task to be ran multiple times in different tests.
3433
task.reenable
3534

3635
allow(Stemcell::Builder).to receive(:validate_env).with(any_args)

0 commit comments

Comments
 (0)