Sha256: 6183878fa26046b376f7735df099fb5411a8ff6ed84a8cd0e4a8f2f5d969108e
Contents?: true
Size: 601 Bytes
Versions: 3
Compression:
Stored size: 601 Bytes
Contents
# frozen_string_literal: true 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
darthjee-core_ext-1.6.2 | spec/lib/object/default_value_spe.rb |
darthjee-core_ext-1.6.1 | spec/lib/object/default_value_spe.rb |
darthjee-core_ext-1.6.0 | spec/lib/object/default_value_spe.rb |