Sha256: c0260cd13d6e0d6c4aad4636589d78148e661210b7ff54eef2808d2ff54d47b5

Contents?: true

Size: 570 Bytes

Versions: 4

Compression:

Stored size: 570 Bytes

Contents

require 'spec_helper'

describe Object do
  describe '.default_value' do
    subject { DefaultValue.new }

    it 'accepts default value' do
      expect(subject.x).to eq(10)
    end

    it do
      expect(Object).not_to respond_to(:default_value)
    end
  end

  describe '.default_values' do
    subject { DefaultValue.new }

    it 'accepts default values' do
      expect(subject.y).to eq(20)
    end

    it 'accepts default values' do
      expect(subject.z).to eq(20)
    end

    it do
      expect(Object).not_to respond_to(:default_values)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
darthjee-core_ext-1.5.6 spec/lib/object/default_value_spe.rb
darthjee-core_ext-1.5.5 spec/lib/object/default_value_spe.rb
darthjee-core_ext-1.5.4 spec/lib/object/default_value_spe.rb
darthjee-core_ext-1.5.3 spec/lib/object/default_value_spe.rb