3 class Arvados::V1::LinksControllerTest < ActionController::TestCase
5 test "no symbol keys in serialized hash" do
7 properties: {username: 'testusername'},
10 tail_kind: 'arvados#user',
11 tail_uuid: users(:admin).uuid,
12 head_kind: 'arvados#virtualMachine',
13 head_uuid: virtual_machines(:testvm).uuid
16 [link, link.to_json].each do |formatted_link|
17 post :create, link: formatted_link
18 assert_response :success
19 assert_not_nil assigns(:object)
20 assert_equal 'testusername', assigns(:object).properties['username']
21 assert_equal false, assigns(:object).properties.has_key?(:username)