Sha256: f6084d8d50415cef8e8e9a03310c537453fdf4b1ef8dc78e245fda613ebfa9e9
Contents?: true
Size: 436 Bytes
Versions: 51
Compression:
Stored size: 436 Bytes
Contents
RSpec.shared_examples_for 'coerces inet column type to string' do |column| raise ArgumentError, 'must pass the column name' unless column context 'with an inet column' do let(:address) { '10.0.0.1' } before(:example) do subject.update_attribute column, address end it 'should cast the column as a string when fetching from the database' do expect(subject.send(column)).to eq(address) end end end
Version data entries
51 entries across 51 versions & 2 rubygems