Sha256: cb26a4b22602c218f0f80ac28b5ac068b2450991f852279a45734ec7158ffd21
Contents?: true
Size: 802 Bytes
Versions: 1
Compression:
Stored size: 802 Bytes
Contents
require 'test_helper' class Ccls::SectionTest < 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 section test" do assert_difference('Section.count',1) { section = Factory(:section) assert_match /Key\d*/, section.key assert_match /Desc\d*/, section.description } end test "should return description as to_s" do section = create_section assert_equal section.description, "#{section}" end #protected # # def create_section(options={}) # section = Factory.build(:section,options) # section.save # section # end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccls-ccls_engine-3.11.0 | test/unit/ccls/section_test.rb |