Sha256: ffd303d399dc20283814599cf51cee216d46057e7685c9ba9b1ce56c07408411

Contents?: true

Size: 335 Bytes

Versions: 18

Compression:

Stored size: 335 Bytes

Contents

require 'spec_helper'
require 'volt/extra_core/blank'

describe Object do
  it 'should add blank? to all objects' do
    expect(Object.new.blank?).to be_false
    expect(nil.blank?).to be_true
  end

  it 'should add present? to all objects' do
    expect(Object.new.present?).to be_true
    expect(nil.present?).to be_false
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
volt-0.8.27.beta7 spec/extra_core/object_spec.rb
volt-0.8.27.beta6 spec/extra_core/object_spec.rb
volt-0.8.27.beta5 spec/extra_core/object_spec.rb
volt-0.8.27.beta4 spec/extra_core/object_spec.rb
volt-0.8.27.beta3 spec/extra_core/object_spec.rb
volt-0.8.27.beta2 spec/extra_core/object_spec.rb
volt-0.8.27.beta1 spec/extra_core/object_spec.rb
volt-0.8.26.beta1 spec/extra_core/object_spec.rb
volt-0.8.26 spec/extra_core/object_spec.rb
volt-0.8.24 spec/extra_core/object_spec.rb
volt-0.8.23 spec/extra_core/object_spec.rb
volt-0.8.22 spec/extra_core/object_spec.rb
volt-0.8.22.beta2 spec/extra_core/object_spec.rb
volt-0.8.22.beta1 spec/extra_core/object_spec.rb
volt-0.8.21 spec/extra_core/object_spec.rb
volt-0.8.20 spec/extra_core/object_spec.rb
volt-0.8.19 spec/extra_core/object_spec.rb
volt-0.8.18 spec/extra_core/object_spec.rb