@@ -110,7 +110,7 @@ def test_it_creates_and_returns_the_container_volumes
110110
111111 def test_it_returns_the_container_labels
112112 container = Testcontainers ::DockerContainer . new ( "hello-world" , labels : { "foo" => "bar" } )
113- assert_equal ( { "foo" => "bar" } , container . labels )
113+ assert_equal ( { "org.testcontainers.lang" => "ruby" , "org.testcontainers.version" => "0.2.0" , " foo" => "bar" } , container . labels )
114114 end
115115
116116 def test_it_returns_the_container_env
@@ -182,7 +182,7 @@ def test_it_adds_a_label
182182 container = Testcontainers ::DockerContainer . new ( "hello-world" )
183183 container . add_label ( "foo" , "bar" )
184184
185- assert_equal ( { "foo" => "bar" } , container . labels )
185+ assert_equal ( { "org.testcontainers.lang" => "ruby" , "org.testcontainers.version" => "0.2.0" , " foo" => "bar" } , container . labels )
186186 end
187187
188188 def test_it_adds_a_wait_for_with_default
@@ -234,7 +234,7 @@ def test_it_can_be_mutated_with_the_with_method
234234 assert_equal ( { "80/tcp" => [ { "HostPort" => "8080" } ] , "443/tcp" => [ { "HostPort" => "" } ] } , container . port_bindings )
235235 assert_equal ( { "/tmp" => { } , "/root" => { } } , container . volumes )
236236 assert_equal ( [ "/tmp/docker:/tmp:rw" , "/home/user:/root:rw" ] , container . filesystem_binds )
237- assert_equal ( { "foo" => "bar" } , container . labels )
237+ assert_equal ( { "org.testcontainers.lang" => "ruby" , "org.testcontainers.version" => "0.2.0" , " foo" => "bar" } , container . labels )
238238 assert_equal ( [ "PATH=/usr/bin" ] , container . env )
239239 assert_equal ( "/app" , container . working_dir )
240240 assert_kind_of ( Proc , container . wait_for )
0 commit comments