Skip to content

Commit f0b857f

Browse files
committed
fix manifest route presentation & test
1 parent cc92514 commit f0b857f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/presenters/v3/app_manifest_presenters/route_properties_presenter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def to_hash(route_mappings:, app:, **_)
1010
protocol: route_mapping.protocol
1111
}
1212

13-
route_hash[:options] = route_mapping.route.options if route_mapping.route.options && route_mapping.route.options[:lb_algo]
13+
route_hash[:options] = route_mapping.route.options if route_mapping.route.options && route_mapping.route.options['lb_algo']
1414

1515
route_hash
1616
end

spec/unit/models/runtime/route_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,8 +1049,8 @@ module VCAP::CloudController
10491049
end
10501050

10511051
describe 'Serialization' do
1052-
it { is_expected.to export_attributes :host, :domain_guid, :space_guid, :path, :service_instance_guid, :port }
1053-
it { is_expected.to import_attributes :host, :domain_guid, :space_guid, :app_guids, :path, :port }
1052+
it { is_expected.to export_attributes :host, :domain_guid, :space_guid, :path, :service_instance_guid, :port, :options }
1053+
it { is_expected.to import_attributes :host, :domain_guid, :space_guid, :app_guids, :path, :port, :options }
10541054
end
10551055

10561056
describe 'instance methods' do

0 commit comments

Comments
 (0)