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