# File gstreamer/tests/tc_element.rb, line 77 def test_pipeline assert_instance_of(Gst::Pipeline, p = Gst::Pipeline.new("my pipeline")) # Test the pipeline as a Gst::Bin (Gst::Pipeline does not have a #test method) p.test(self) # Test unique auto-generated pipelines names a = Array.new 10.times { a.push(Gst::Pipeline.new) } a.each { |e| assert_instance_of(Gst::Pipeline, e) } assert_nil a.collect { |e| e.name }.uniq! end