Skip to content

Commit bb30c98

Browse files
committed
fix: rubocop errors are fixed
1 parent 84cd8d4 commit bb30c98

25 files changed

Lines changed: 49 additions & 56 deletions

app/models/runtime/app_model.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ def validate
9999
validates_format APP_NAME_REGEX, :name
100100
validate_environment_variables
101101
validate_droplet_is_staged
102-
103102
end
104103

105104
def lifecycle_type

app/models/services/service_plan.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def around_save
8484
raise validation_failed_error
8585
end
8686

87-
8887
def validate
8988
validates_presence :name, message: 'is required'
9089
validates_presence :description, message: 'is required'

spec/support/shared_examples/models/domain_validation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ module VCAP::CloudController
1313

1414
context "when there's another domain with the same name" do
1515
it 'fails to validate' do
16-
expect {
16+
expect do
1717
described_class.make(name: subject.name)
18-
}.to raise_error(Sequel::ValidationFailed, /already reserved by another domain|unique/)
18+
end.to raise_error(Sequel::ValidationFailed, /already reserved by another domain|unique/)
1919
end
2020
end
2121

spec/unit/actions/app_create_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ module VCAP::CloudController
200200
end
201201
end
202202

203-
204203
describe 'stack state validation' do
205204
let(:test_stack) { Stack.make(name: 'test-stack-for-validation') }
206205
let(:lifecycle_request) { { type: 'buildpack', data: { buildpacks: [buildpack_identifier], stack: test_stack.name } } }

spec/unit/actions/organization_create_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ module VCAP::CloudController
121121
org_create.create(message)
122122
end.not_to raise_error
123123

124-
125124
# Second request, should fail with correct error
126125
expect do
127126
org_create.create(message)

spec/unit/actions/service_broker_create_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ module CloudController
140140
action.create(message)
141141
end.not_to raise_error
142142

143-
144143
# Second request, should fail with correct error
145144
expect do
146145
action.create(message)

spec/unit/actions/space_create_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ module VCAP::CloudController
9090
SpaceCreate.new(user_audit_info:).create(org, message)
9191
end.not_to raise_error
9292

93-
9493
# Second request, should fail with correct error
9594
expect do
9695
SpaceCreate.new(user_audit_info:).create(org, message)

spec/unit/actions/space_quotas_create_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ module VCAP::CloudController
210210
space_quotas_create.create(message, organization: org)
211211
end.not_to raise_error
212212

213-
214213
# Second request, should fail with correct error
215214
expect do
216215
space_quotas_create.create(message, organization: org)

spec/unit/actions/stack_create_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ module VCAP::CloudController
130130
stack_create.create(message)
131131
end.not_to raise_error
132132

133-
134133
# Second request, should fail with correct error
135134
expect do
136135
stack_create.create(message)

spec/unit/actions/user_create_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ module VCAP::CloudController
4444
subject.create(message:)
4545
end.not_to raise_error
4646

47-
4847
# Second request, should fail with correct error
4948
expect do
5049
subject.create(message:)

0 commit comments

Comments
 (0)