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

Version Path
restful_resource-2.18.1 spec/restful_resource/strict_open_struct_spec.rb
restful_resource-2.18.0 spec/restful_resource/strict_open_struct_spec.rb
restful_resource-2.17.0 spec/restful_resource/strict_open_struct_spec.rb
restful_resource-2.15.0 spec/restful_resource/strict_open_struct_spec.rb
restful_resource-2.14.0 spec/restful_resource/strict_open_struct_spec.rb
restful_resource-2.13.4 spec/restful_resource/strict_open_struct_spec.rb
restful_resource-2.13.3 spec/restful_resource/strict_open_struct_spec.rb
restful_resource-2.13.2 spec/restful_resource/strict_open_struct_spec.rb
restful_resource-2.13.1 spec/restful_resource/strict_open_struct_spec.rb
restful_resource-2.13.0 spec/restful_resource/strict_open_struct_spec.rb
restful_resource-2.12.1 spec/restful_resource/strict_open_struct_spec.rb