Sha256: c2b5a7f83a5603cc30e045f667f65b4f0f6fd40b267c0d2b4129bd84d9a68553
Contents?: true
Size: 686 Bytes
Versions: 2
Compression:
Stored size: 686 Bytes
Contents
require 'test_helper' MiniTest::Unit.autorun class TestRecord < MiniTest::Unit::TestCase def setup @record = AccessibleSeedYaml::Record.new(TestData::Seed::Record01) end def test_initialize assert_raises(ArgumentError){ AccessibleSeedYaml::Record.new(TestData::Seed::Table) } end def test_original_seed assert_equal(TestData::Seed::Record01, @record.original_seed) end def test_to_s assert_equal(@record.original_seed, @record.to_s) end def test_attributes assert_equal(1, @record.attributes["id"]) assert_equal("coffee", @record.attributes["name"]) end def test_key assert_equal("data1", @record.key) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
accessible_seed_yaml-1.0.2 | test/accessible_seed/test_record.rb |
accessible_seed_yaml-1.0.1 | test/accessible_seed/test_record.rb |