Sha256: f9cb6aa833f34a8d29f8a8c8603a4dad9f1eb9a56524ffbcb01781881fe40390
Contents?: true
Size: 522 Bytes
Versions: 5
Compression:
Stored size: 522 Bytes
Contents
require "spec_helper" require "tagen/yaml" require "tagen/core" require "tmpdir" require "fileutils" describe YAML do before :all do @curdir = Dir.pwd @tmpdir = Dir.mktmpdir Dir.chdir @tmpdir end after :all do Dir.chdir @curdir FileUtils.rm_r @tmpdir end describe ".dump" do it "support Pa" do YAML.dump("foo", Pa('a')) File.read('a').should =~ /foo/ end end describe ".load" do it "support Pa" do YAML.dump('foo', open('b', 'w+')) YAML.load(Pa('b')).should == 'foo' end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
tagen-1.0.1 | spec/tagen/yaml_spec.rb |
tagen-1.0.0 | spec/tagen/yaml_spec.rb |
tagen-0.2.5 | spec/tagen/yaml_spec.rb |
tagen-0.2.4 | spec/tagen/yaml_spec.rb |
tagen-0.2.3 | spec/tagen/yaml_spec.rb |