Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ group :test do
gem 'rspec-its'
gem 'rspec-rails', '~> 8.0.2'
gem 'rspec-wait'
gem 'rubocop', '~> 1.84.1'
gem 'rubocop', '~> 1.84.2'
gem 'rubocop-capybara'
gem 'rubocop-factory_bot'
gem 'rubocop-rails', '~> 2.34'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ GEM
activesupport (>= 3.0.0)
mustache (~> 1.0, >= 0.99.4)
rspec (~> 3.0)
rubocop (1.84.1)
rubocop (1.84.2)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
Expand Down Expand Up @@ -680,7 +680,7 @@ DEPENDENCIES
rspec-rails (~> 8.0.2)
rspec-wait
rspec_api_documentation (>= 6.1.0)
rubocop (~> 1.84.1)
rubocop (~> 1.84.2)
rubocop-capybara
rubocop-factory_bot
rubocop-rails (~> 2.34)
Expand Down
12 changes: 6 additions & 6 deletions spec/request_spec_shared_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
ALL_PERMISSIONS = (LOCAL_ROLES + GLOBAL_SCOPES).freeze

CF_NOT_AUTHORIZED = [
detail: 'You are not authorized to perform the requested action',
title: 'CF-NotAuthorized',
code: 10_003
{ detail: 'You are not authorized to perform the requested action',
title: 'CF-NotAuthorized',
code: 10_003 }
].freeze

CF_ORG_SUSPENDED = [
detail: 'The organization is suspended',
title: 'CF-OrgSuspended',
code: 10_017
{ detail: 'The organization is suspended',
title: 'CF-OrgSuspended',
code: 10_017 }
].freeze

RSpec.shared_examples 'paginated response' do |endpoint|
Expand Down
12 changes: 6 additions & 6 deletions spec/unit/controllers/v3/space_manifests_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ def error_message(detail)
errors = parsed_body['errors']
expect(errors.size).to eq(1)
expected_error = [
'detail' => "For application 'blah': Buildpack cannot be configured for a docker lifecycle app.",
'title' => 'CF-UnprocessableEntity',
'code' => 10_008
{ 'detail' => "For application 'blah': Buildpack cannot be configured for a docker lifecycle app.",
'title' => 'CF-UnprocessableEntity',
'code' => 10_008 }
]
expect(errors.map { |h| h.except('test_mode_info') }).to match_array(expected_error)
end
Expand Down Expand Up @@ -305,9 +305,9 @@ def error_message(detail)
errors = parsed_body['errors']
expect(errors.size).to eq(1)
expected_error = [
'detail' => "For application 'blah': Buildpacks cannot be configured for a docker lifecycle app.",
'title' => 'CF-UnprocessableEntity',
'code' => 10_008
{ 'detail' => "For application 'blah': Buildpacks cannot be configured for a docker lifecycle app.",
'title' => 'CF-UnprocessableEntity',
'code' => 10_008 }
]
expect(errors.map { |h| h.except('test_mode_info') }).to match_array(expected_error)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ module CNB
lifecycle_type: 'cnb',
lifecycle_metadata: {
buildpacks: [
key: 'foo',
name: 'nodejs',
version: '1.0.0'
{ key: 'foo',
name: 'nodejs',
version: '1.0.0' }
]
},
process_types: {
Expand Down