Sha256: 833a1a62121ee386c273825d1ea59928eb9f51d14225b398442e922088a20f7d

Contents?: true

Size: 339 Bytes

Versions: 19

Compression:

Stored size: 339 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 eq(false)
    expect(nil.blank?).to eq(true)
  end

  it 'should add present? to all objects' do
    expect(Object.new.present?).to eq(true)
    expect(nil.present?).to eq(false)
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
volt-0.9.3.pre2 spec/extra_core/object_spec.rb
volt-0.9.3.pre1 spec/extra_core/object_spec.rb
volt-0.9.2 spec/extra_core/object_spec.rb
volt-0.9.1 spec/extra_core/object_spec.rb
volt-0.9.1.pre5 spec/extra_core/object_spec.rb
volt-0.9.1.pre4 spec/extra_core/object_spec.rb
volt-0.9.1.pre3 spec/extra_core/object_spec.rb
volt-0.9.1.pre2 spec/extra_core/object_spec.rb
volt-0.9.1.pre1 spec/extra_core/object_spec.rb
volt-0.9.0 spec/extra_core/object_spec.rb
volt-0.9.0.pre7 spec/extra_core/object_spec.rb
volt-0.9.0.pre6 spec/extra_core/object_spec.rb
volt-0.9.0.pre5 spec/extra_core/object_spec.rb
volt-0.9.0.pre4 spec/extra_core/object_spec.rb
volt-0.9.0.pre3 spec/extra_core/object_spec.rb
volt-0.9.0.pre2 spec/extra_core/object_spec.rb
volt-0.9.0.pre1 spec/extra_core/object_spec.rb
volt-0.8.27.beta9 spec/extra_core/object_spec.rb
volt-0.8.27.beta8 spec/extra_core/object_spec.rb