Sha256: 3252aff9f6f93196e56937b1292f21ab4e5c6b6867e24e9488a44a1bd2f9a81f
Contents?: true
Size: 438 Bytes
Versions: 2
Compression:
Stored size: 438 Bytes
Contents
module JSON module Generator describe IntegerAttribute 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' => 'integer'}).generate.should == 0 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/integer_attribute_spec.rb |
contracts_api_test-0.0.1 | spec/json/generator/integer_attribute_spec.rb |