Sha256: a73cdc979a90f0b60caf6538bc5fa7bb85739847f470b358fb2d0fdd171ba8ca
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 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_records assert_equal(1, @record.attributes["id"]) assert_equal("coffee", @record.attributes["name"]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
accessible_seed_yaml-1.0.0 | test/accessible_seed/test_record.rb |