Sha256: 33478e62e7332d42494b6740b84cddeabce6a8f5c6973f0190d74a5cb37dd5ff

Contents?: true

Size: 439 Bytes

Versions: 2

Compression:

Stored size: 439 Bytes

Contents

require File.dirname(__FILE__) + '/base'

describe YamlDb::Utils, " convert records utility method" do

  it "turns an array with one record into a yaml chunk" do
    YamlDb::Utils.chunk_records([ %w(a b) ]).should == <<EOYAML
  - - a
    - b
EOYAML
  end

  it "turns an array with two records into a yaml chunk" do
    YamlDb::Utils.chunk_records([ %w(a b), %w(x y) ]).should == <<EOYAML
  - - a
    - b
  - - x
    - y
EOYAML
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ironmin_yaml_db-0.0.3 spec/yaml_utils_spec.rb
ironmin_yaml_db-0.0.2 spec/yaml_utils_spec.rb