Sha256: 9787d132421e6a927057de376aa69ee3271352fe3dcff065c013e9661f83e37a
Contents?: true
Size: 429 Bytes
Versions: 4
Compression:
Stored size: 429 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Attribute, '#valid_primitive?' do subject { object.valid_primitive?(value) } let(:described_class) { Attribute::Integer } let(:object) { described_class.new(:id) } context 'with a valid value' do let(:value) { 1 } it { should be(true) } end context 'with an invalid value' do let(:value) { 'a' } it { should be(false) } end end
Version data entries
4 entries across 4 versions & 1 rubygems