Sha256: 8484f6dd829a94cc080c1335fe3d5d1637c9c94a9c5bf615ae283f9744264a82
Contents?: true
Size: 656 Bytes
Versions: 16
Compression:
Stored size: 656 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Axiom::Types::Object, '.finalize' do subject { object.finalize } let(:object) do # Class.new { ... } does not work with this on 1.8.7 object = Class.new(described_class) object.primitive(::String) object end it_should_behave_like 'a command method' it_should_behave_like 'an idempotent method' it { should be_frozen } its(:constraint) { should be_frozen } it 'adds a constraint that returns true for a valid primitive' do should include('string') end it 'adds a constraint that returns false for an invalid primitive' do should_not include(nil) end end
Version data entries
16 entries across 14 versions & 4 rubygems