Sha256: 4fd585dd26091ceb4a5d7a8f10c1940de5b5f253dcdcd12e7f1b16c2a7566f98
Contents?: true
Size: 610 Bytes
Versions: 4
Compression:
Stored size: 610 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Class do describe '.default_value' do subject { DefaultValueModel.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 { DefaultValueModel.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