Sha256: 5da7706648777d4cf25a1c54e6be5c55408874dbada06e2070dff9bb91f8473b
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 Bytes
Contents
require 'test_helper' class Ccls::AddressTypeTest < ActiveSupport::TestCase assert_should_behave_like_a_hash assert_should_create_default_object assert_should_not_require_attributes( :position ) assert_should_act_as_list assert_should_have_many(:addresses) test "explicit Factory address_type test" do assert_difference('AddressType.count',1) { address_type = Factory(:address_type) assert_match /Key\d*/, address_type.key assert_match /Desc\d*/, address_type.description } end test "should return key as to_s" do address_type = Factory(:address_type) assert_equal address_type.key, "#{address_type}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccls-ccls_engine-3.11.0 | test/unit/ccls/address_type_test.rb |