Sha256: 0c2f202f04129c61e6118e18cb28048518d623bc47384b9126cb32e65a02f744
Contents?: true
Size: 544 Bytes
Versions: 11
Compression:
Stored size: 544 Bytes
Contents
require_relative '../spec_helper' RSpec.describe RestfulResource::StrictOpenStruct do let(:instance) { described_class.new(foo: 'bar') } describe '#dig' do it 'is deprecated' do expect { instance.dig(:foo) }.to output( /dig is deprecated and will be removed from restful_resource soon/ ).to_stderr end end describe '#[]' do it 'is deprecated' do expect { instance[:foo] }.to output( /\[\] is deprecated and will be removed from restful_resource soon/ ).to_stderr end end end
Version data entries
11 entries across 11 versions & 1 rubygems