Sha256: 5607c2b03a9f1ad3d221541b6504912101e997dd41f24cd867a2dbb7746958b3

Contents?: true

Size: 473 Bytes

Versions: 10

Compression:

Stored size: 473 Bytes

Contents

require 'spec_helper'
describe ::Trax::Model::UniqueId do
  subject{ ::Product }

  its(:uuid_prefix) {
    should be_instance_of(::Trax::Model::UUIDPrefix)
  }

  describe "uuid_prefix" do
    context "bad prefixes" do
      ["a", "1p", "a1a", "bl", "1", "111"].each do |prefix|
        it "raises error when passed hex incompatible prefix #{prefix}" do
          expect{ subject.trax_defaults.uuid_prefix=(prefix) }.to raise_error
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
trax_model-0.0.92 spec/trax/model/unique_id_spec.rb
trax_model-0.0.91 spec/trax/model/unique_id_spec.rb
trax_model-0.0.9 spec/trax/model/unique_id_spec.rb
trax_model-0.0.8 spec/trax/model/unique_id_spec.rb
trax_model-0.0.7 spec/trax/model/unique_id_spec.rb
trax_model-0.0.6 spec/trax/model/unique_id_spec.rb
trax_model-0.0.5 spec/trax/model/unique_id_spec.rb
trax_model-0.0.4 spec/trax/model/unique_id_spec.rb
trax_model-0.0.3 spec/trax/model/unique_id_spec.rb
trax_model-0.0.2 spec/trax/model/unique_id_spec.rb