Sha256: 4fe03bdcda1e68e249fd80600c8c5f826c4cb1cce7b3a3df0aa39e038e1e20ab
Contents?: true
Size: 409 Bytes
Versions: 7
Compression:
Stored size: 409 Bytes
Contents
require File.expand_path('../fixtures/common', __FILE__) describe "YAML.dump_stream" do ruby_version_is "" ... "2.0" do it "returns an empty string when not passed any objects" do YAML.dump_stream.should == "" end end 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
Version data entries
7 entries across 7 versions & 1 rubygems