Sha256: ea428c03e8d7b3fb2070f1745ef71bf755e169e811d531346dc59ce4a71eb6c7
Contents?: true
Size: 440 Bytes
Versions: 2
Compression:
Stored size: 440 Bytes
Contents
module JSON module Generator describe StringAttribute 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' => 'string'}).generate.should == 'bar' 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/string_attribute_spec.rb |
contracts_api_test-0.0.1 | spec/json/generator/string_attribute_spec.rb |