Skip to content

Commit 40be25f

Browse files
nicolasbenderpbusko
authored andcommitted
fix cnb update message validation test
Co-authored-by: Pavel Busko <[email protected]>
1 parent bef4810 commit 40be25f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/unit/lib/cloud_controller/diego/lifecycles/app_cnb_lifecycle_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,6 @@ module VCAP::CloudController
102102
it 'invalid' do
103103
expect(lifecycle.valid?).to be(false)
104104
end
105-
106-
context 'during an update' do
107-
let(:message) { VCAP::CloudController::AppUpdateMessage.new(request) }
108-
109-
it 'valid' do
110-
expect(lifecycle.valid?).to be(true)
111-
end
112-
end
113105
end
114106

115107
context 'with buildpacks' do
@@ -123,6 +115,14 @@ module VCAP::CloudController
123115
it 'valid' do
124116
expect(lifecycle.valid?).to be(true)
125117
end
118+
119+
context 'during an update' do
120+
let(:message) { VCAP::CloudController::AppUpdateMessage.new(request) }
121+
122+
it 'valid' do
123+
expect(lifecycle.valid?).to be(true)
124+
end
125+
end
126126
end
127127
end
128128
end

0 commit comments

Comments
 (0)