Sha256: ec47bec4e835114ae22b1727d8b05f52a54b28938860d15e1a83bed8827ac73f
Contents?: true
Size: 957 Bytes
Versions: 1
Compression:
Stored size: 957 Bytes
Contents
require 'test_helper' class Ccls::DataSourceTest < ActiveSupport::TestCase assert_should_behave_like_a_hash assert_should_create_default_object assert_should_act_as_list assert_should_not_require_attributes( :position, :organization_id, :other_organization, :person_id, :other_person, :data_origin ) assert_should_require_attribute_length( :other_organization, :other_person, :data_origin, :maximum => 250 ) test "explicit Factory data_source test" do assert_difference('DataSource.count',1) { data_source = Factory(:data_source) assert_match /Key\d*/, data_source.key assert_match /Desc\d*/, data_source.description } end test "should return description as to_s" do data_source = create_data_source assert_equal data_source.description, "#{data_source}" end test "should return true for is_other if is other" do data_source = DataSource['Other'] assert data_source.is_other? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccls-ccls_engine-3.11.0 | test/unit/ccls/data_source_test.rb |