Sha256: d6a9eded77a50cf4e15dcd59dd0138520e97625a1b99f4ad89163ef26e2fff88
Contents?: true
Size: 315 Bytes
Versions: 3
Compression:
Stored size: 315 Bytes
Contents
require File.dirname(__FILE__) + "/../spec_helper" describe DataMapper::Support do it "should mark empty objects as blank" do [ nil, false, '', ' ', " \n\t \r ", [], {} ].each { |f| f.should be_blank } [ Object.new, true, 0, 1, 'a', [nil], { nil => 0 } ].each { |t| t.should_not be_blank } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
datamapper-0.3.2 | spec/support/blank_spec.rb |
datamapper-0.3.0 | spec/support/blank_spec.rb |
datamapper-0.3.1 | spec/support/blank_spec.rb |