Sha256: 19925749f464297cc7e5d7c1f9bdac13dedef1906ead6a15d4370c9126c2c6c0
Contents?: true
Size: 442 Bytes
Versions: 2
Compression:
Stored size: 442 Bytes
Contents
module JSON module Generator describe BooleanAttribute do it 'should be a BasicAttribute' do described_class.new(nil).should be_kind_of(BasicAttribute) end describe '#generate' do context 'without a default value' do it 'should return the default value' do described_class.new({'type' => 'boolean'}).generate.should == false end end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
json-generator-0.0.1 | spec/json/generator/boolean_attribute_spec.rb |
contracts_api_test-0.0.1 | spec/json/generator/boolean_attribute_spec.rb |