@@ -19,9 +19,10 @@ def test_key_missing
1919 end
2020 end
2121
22- def test_image
23- variant = Matrixeval ::Ruby ::Variant . new ( { "key" => 3.1 , "image" => "ruby:3.1.0" } , @vector )
24- assert_equal "3.1" , variant . key
22+ def test_container
23+ variant = Matrixeval ::Ruby ::Variant . new ( { "key" => 3.1 , "container" => { "image" => "ruby:3.1.0" } } , @vector )
24+ assert variant . container . is_a? ( Matrixeval ::Ruby ::Container )
25+ assert_equal "ruby:3.1.0" , variant . container . image
2526 end
2627
2728 def test_env
@@ -35,22 +36,22 @@ def test_vector
3536 end
3637
3738 def test_bundle_volume_name
38- variant = Matrixeval ::Ruby ::Variant . new ( { "key" => 3.1 , "image" => "ruby:3.1.0" } , @vector )
39+ variant = Matrixeval ::Ruby ::Variant . new ( { "key" => 3.1 , "container" => { " image" => "ruby:3.1.0" } } , @vector )
3940 assert_equal "bundle_ruby_3_1_0" , variant . bundle_volume_name
4041 end
4142
4243 def test_id
43- variant = Matrixeval ::Ruby ::Variant . new ( { "key" => 3.1 , "image" => "ruby:3.1.0" } , @vector )
44+ variant = Matrixeval ::Ruby ::Variant . new ( { "key" => 3.1 , "container" => { " image" => "ruby:3.1.0" } } , @vector )
4445 assert_equal "ruby_3_1" , variant . id
4546 end
4647
4748 def test_docker_compose_service_name
48- variant = Matrixeval ::Ruby ::Variant . new ( { "key" => 3.1 , "image" => "ruby:3.1.0" } , @vector )
49+ variant = Matrixeval ::Ruby ::Variant . new ( { "key" => 3.1 , "container" => { " image" => "ruby:3.1.0" } } , @vector )
4950 assert_equal "ruby_3_1" , variant . docker_compose_service_name
5051 end
5152
5253 def test_pathname
53- variant = Matrixeval ::Ruby ::Variant . new ( { "key" => 3.1 , "image" => "ruby:3.1.0" } , @vector )
54+ variant = Matrixeval ::Ruby ::Variant . new ( { "key" => 3.1 , "container" => { " image" => "ruby:3.1.0" } } , @vector )
5455 assert_equal "ruby_3_1" , variant . pathname
5556 end
5657
0 commit comments