Sha256: 96132162a5061819988171380d13fba85f2cdf0865ddf52e2d1cbfd1712e2372
Contents?: true
Size: 477 Bytes
Versions: 2
Compression:
Stored size: 477 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Attribute::Boolean, '#include?' do subject { object.include?(value) } let(:object) { described_class.new(:boolean) } context 'with a true value' do let(:value) { true } it { should be(true) } end context 'with a false value' do let(:value) { false } it { should be(true) } end context 'with a value that is not true or false' do let(:value) { 1 } it { should be(false) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/attribute/boolean/include_predicate_spec.rb |
axiom-0.1.1 | spec/unit/axiom/attribute/boolean/include_predicate_spec.rb |