Sha256: 097cde792cce7102e3e66e357ed7dd4dda7c472d92ebc65f3265ea0bbcab289c

Contents?: true

Size: 432 Bytes

Versions: 28

Compression:

Stored size: 432 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

28 entries across 28 versions & 10 rubygems

Version Path
yaml_db_with_schema_tables-0.3.4 spec/yaml_utils_spec.rb
yaml_db_with_schema_tables-0.3.3 spec/yaml_utils_spec.rb
yaml_db_with_schema_tables-0.3.2 spec/yaml_utils_spec.rb
mfpiccolo_yaml_db-0.2.3 spec/yaml_utils_spec.rb
yaml_db_with_schema_tables-0.2.4 spec/yaml_utils_spec.rb
irm_yaml_db-0.0.4 spec/yaml_utils_spec.rb
irm_yaml_db-0.0.3 spec/yaml_utils_spec.rb
irm_yaml_db-0.0.2 spec/yaml_utils_spec.rb
irm_yaml_db-0.0.1 spec/yaml_utils_spec.rb
mtwtfss_yaml_db-0.5 spec/yaml_utils_spec.rb
keeguon-yaml_db-0.2.4 spec/yaml_utils_spec.rb
gitlab_yaml_db-1.0.0 spec/yaml_utils_spec.rb
fm_yaml_db-0.2.5 spec/yaml_utils_spec.rb
fm_yaml_db-0.2.4 spec/yaml_utils_spec.rb
yaml_db-0.2.3 spec/yaml_utils_spec.rb
yaml_db_arel-0.2.2 spec/yaml_utils_spec.rb
yaml_db-0.2.2 spec/yaml_utils_spec.rb
yaml_db-0.2.1 spec/yaml_utils_spec.rb
molo-0.7.6 vendor/yaml_db/spec/yaml_utils_spec.rb
molo-0.7.5 vendor/yaml_db/spec/yaml_utils_spec.rb