summaryrefslogtreecommitdiff
path: root/spec/ruby/library/yaml/dump_stream_spec.rb
blob: 918b62607fef9f14c619cbad196634f725361d7e (plain)
1
2
3
4
5
6
7
8
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