Sha256: ef4d02fdd09aeec62b86a510f6fe2ebd371b3be122b5688382441dd3d2749485
Contents?: true
Size: 910 Bytes
Versions: 1
Compression:
Stored size: 910 Bytes
Contents
require 'test_helper' class Ccls::FollowUpTypeTest < ActiveSupport::TestCase assert_should_behave_like_a_hash assert_should_create_default_object assert_should_act_as_list assert_should_have_many(:follow_ups) assert_should_not_require_attributes( :position ) # assert_should_require_attribute_length( :event_category, :in => 4..250 ) test "explicit Factory follow_up_type test" do assert_difference('FollowUpType.count',1) { follow_up_type = Factory(:follow_up_type) assert_match /Key\d*/, follow_up_type.key assert_match /Desc\d*/, follow_up_type.description } end test "should return description as to_s" do follow_up_type = create_follow_up_type assert_equal follow_up_type.description, "#{follow_up_type}" end #protected # # def create_follow_up_type(options={}) # follow_up_type = Factory.build(:follow_up_type,options) # follow_up_type.save # follow_up_type # end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccls-ccls_engine-3.11.0 | test/unit/ccls/follow_up_type_test.rb |