Sha256: 246869d9fbe6380e71f90742a953983fed47ada6e655876c8bfdc61a9d272bbe

Contents?: true

Size: 304 Bytes

Versions: 7

Compression:

Stored size: 304 Bytes

Contents

require File.expand_path('../fixtures/common', __FILE__)

describe "YAML.load_file" do
  after :each do
    rm_r $test_file
  end

  it "returns a hash" do
    File.open($test_file,'w' ){|io| YAML.dump( {"bar"=>2, "car"=>1}, io ) }
    YAML.load_file($test_file).should == {"bar"=>2, "car"=>1}
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubysl-yaml-2.1.0 spec/load_file_spec.rb
rubysl-yaml-1.1.0 spec/load_file_spec.rb
rubysl-yaml-2.0.4 spec/load_file_spec.rb
rubysl-yaml-2.0.3 spec/load_file_spec.rb
rubysl-yaml-2.0.2 spec/load_file_spec.rb
rubysl-yaml-1.0.1 spec/load_file_spec.rb
rubysl-yaml-2.0.0 spec/load_file_spec.rb