Sha256: a773db4f724e3606770b745489ce7e186fc08ef3fca6a10e6af0d1911344acbd

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 Bytes

Contents

require 'test_helper'

class Ccls::UnitTest < ActiveSupport::TestCase

	assert_should_behave_like_a_hash

	assert_should_create_default_object
	assert_should_act_as_list
	assert_should_have_many( :aliquots, :samples )
	assert_should_belong_to( :context )
	assert_should_not_require_attributes( :position, :context_id )

	test "explicit Factory unit test" do
		assert_difference('Unit.count',1) {
			unit = Factory(:unit)
			assert_match /Key\d*/, unit.key
			assert_match /Desc\d*/, unit.description
		}
	end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ccls-ccls_engine-3.11.0 test/unit/ccls/unit_test.rb