@@ -625,35 +625,35 @@ class User
625
625
626
626
get '/' , a : %w( the other )
627
627
expect ( last_response . status ) . to eq ( 200 )
628
- expect ( last_response . body ) . to eq ( '["the", "other"]' )
628
+ expect ( last_response . body ) . to eq ( '#<Hashie::Array ["the", "other"]> ' )
629
629
630
630
get '/' , a : { a : 1 , b : 2 }
631
631
expect ( last_response . status ) . to eq ( 400 )
632
632
expect ( last_response . body ) . to eq ( 'a is invalid' )
633
633
634
634
get '/' , a : [ 1 , 2 , 3 ]
635
635
expect ( last_response . status ) . to eq ( 200 )
636
- expect ( last_response . body ) . to eq ( '["1", "2", "3"]' )
636
+ expect ( last_response . body ) . to eq ( '#<Hashie::Array ["1", "2", "3"]> ' )
637
637
end
638
638
639
639
it 'allows multiple collection types' do
640
640
get '/' , b : [ 1 , 2 , 3 ]
641
641
expect ( last_response . status ) . to eq ( 200 )
642
- expect ( last_response . body ) . to eq ( '[1, 2, 3]' )
642
+ expect ( last_response . body ) . to eq ( '#<Hashie::Array [1, 2, 3]> ' )
643
643
644
644
get '/' , b : %w( 1 2 3 )
645
645
expect ( last_response . status ) . to eq ( 200 )
646
- expect ( last_response . body ) . to eq ( '[1, 2, 3]' )
646
+ expect ( last_response . body ) . to eq ( '#<Hashie::Array [1, 2, 3]> ' )
647
647
648
648
get '/' , b : [ 1 , true , 'three' ]
649
649
expect ( last_response . status ) . to eq ( 200 )
650
- expect ( last_response . body ) . to eq ( '["1", "true", "three"]' )
650
+ expect ( last_response . body ) . to eq ( '#<Hashie::Array ["1", "true", "three"]> ' )
651
651
end
652
652
653
653
it 'allows collections with multiple types' do
654
654
get '/' , c : [ 1 , '2' , true , 'three' ]
655
655
expect ( last_response . status ) . to eq ( 200 )
656
- expect ( last_response . body ) . to eq ( '[1, 2, "true", "three"]' )
656
+ expect ( last_response . body ) . to eq ( '#<Hashie::Array [1, 2, "true", "three"]> ' )
657
657
658
658
get '/' , d : '1'
659
659
expect ( last_response . status ) . to eq ( 200 )
0 commit comments