Sha256: b557ae10cff0173028f0a16cfd292e7bea2fbbace6b2c6f39638b5b4bca65ff9
Contents?: true
Size: 427 Bytes
Versions: 16
Compression:
Stored size: 427 Bytes
Contents
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(:each) 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
16 entries across 16 versions & 1 rubygems