Skip to content

Commit ba7b77a

Browse files
committed
Fix route_presenter_spec (add created_at and updated_at to destinations)
1 parent 49b71d5 commit ba7b77a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/unit/presenters/v3/route_presenter_spec.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ module VCAP::CloudController::Presenters::V3
8686
},
8787
weight: destination.weight,
8888
port: destination.presented_port,
89-
protocol: destination.protocol
89+
protocol: destination.protocol,
90+
created_at: destination.created_at,
91+
updated_at: destination.updated_at
9092
},
9193
{
9294
guid: destination2.guid,
@@ -98,7 +100,9 @@ module VCAP::CloudController::Presenters::V3
98100
},
99101
weight: destination2.weight,
100102
port: destination2.presented_port,
101-
protocol: destination2.protocol
103+
protocol: destination2.protocol,
104+
created_at: destination.created_at,
105+
updated_at: destination.updated_at
102106
}
103107
]
104108
expect(subject[:destinations]).to match_array(expected_destinations)

0 commit comments

Comments
 (0)