Sha256: d08241d110d2658cc545ae60c23bce367bfad38a5c95b388918ca148e305c655

Contents?: true

Size: 601 Bytes

Versions: 1

Compression:

Stored size: 601 Bytes

Contents

require 'test_helper'

MiniTest::Unit.autorun

class TestTable < MiniTest::Unit::TestCase
  def setup
    @seed = AccessibleSeedYaml::Table.new(TestData::Seed::Table)
  end
  
  def test_original_seed
    assert_equal(TestData::Seed::Table, @seed.original_seed)
  end
  
  def test_records
    assert_instance_of(AccessibleSeedYaml::Record, @seed.records.first)
    
    assert_equal(TestData::Seed::Record01, @seed.records[0].original_seed)
    assert_equal(TestData::Seed::Record02, @seed.records[1].original_seed)
    assert_equal(TestData::Seed::Record03, @seed.records[2].original_seed)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
accessible_seed_yaml-1.0.0 test/accessible_seed/test_table.rb