Sha256: 766f5a7fe1b31c4e9a67c8cb9cbcc9101bd97c65c8938ec5af4695d4a2095bed
Contents?: true
Size: 607 Bytes
Versions: 114
Compression:
Stored size: 607 Bytes
Contents
require 'rails_helper' describe LHS::Item do let(:item) do LHS::Item.new(id: 1234) end context '#respond_to?' do it 'is true for setters' do expect(item.respond_to?(:id=)).to be(true) end it 'is true for getters' do expect(item.respond_to?(:id)).to be(true) end it 'is true for brackets' do expect(item.respond_to?(:[])).to be(true) end it 'is false for new' do expect(item.respond_to?(:new)).to be(false) end it 'is false for proxy_association' do expect(item.respond_to?(:proxy_association)).to be(false) end end end
Version data entries
114 entries across 114 versions & 1 rubygems