mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
9 lines
319 B
Ruby
9 lines
319 B
Ruby
|
require File.expand_path('../../../spec_helper', __FILE__)
|
||
|
require File.expand_path('../fixtures/common', __FILE__)
|
||
|
|
||
|
describe "YAML.dump_stream" do
|
||
|
it "returns a YAML stream containing the objects passed" do
|
||
|
YAML.dump_stream('foo', 20, [], {}).should match_yaml("--- foo\n--- 20\n--- []\n\n--- {}\n\n")
|
||
|
end
|
||
|
end
|