Sha256: 0d4614ebda14a4d2234c810e6157d4b0ed0d07c7904e3994da9c7e2d1f5492d0
Contents?: true
Size: 824 Bytes
Versions: 4
Compression:
Stored size: 824 Bytes
Contents
# encoding: UTF-8 require 'test_helper' class LabelTest < ActiveSupport::TestCase def setup @current_label = FactoryGirl.create(:xllabel_with_association) @user = FactoryGirl.create(:user) end def test_should_not_create_more_than_two_versions_of_a_label first_new_label = Label::SKOSXL::Base.new(@current_label.attributes) second_new_label = Label::SKOSXL::Base.new(@current_label.attributes) assert first_new_label.save assert_equal second_new_label.save, false end def test_should_validate_origin_for_escaping label = FactoryGirl.build(:xllabel) assert label.valid_with_full_validation? label.origin = "FoÖ/Bär" assert label.invalid_with_full_validation? label.origin = OriginMapping.merge("FoÖ/Bär") assert label.valid_with_full_validation? end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
iqvoc_skosxl-1.2.2 | test/unit/label_test.rb |
iqvoc_skosxl-1.2.1 | test/unit/label_test.rb |
iqvoc_skosxl-1.2.0 | test/unit/label_test.rb |
iqvoc_skosxl-1.1.4 | test/unit/label_test.rb |