Sha256: 4f1edb0085556149151adc88ee491c3771159152813c3f944f93de896df382dd
Contents?: true
Size: 454 Bytes
Versions: 64
Compression:
Stored size: 454 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' describe LHS::Record do describe '#dup' do before do class Appointment < LHS::Record end end it 'returns a copy of an object' do appointment = Appointment.new copy = appointment.dup expect(copy.inspect).to match(/Appointment/) expect(copy).to be_kind_of(Appointment) expect(copy.object_id).not_to eql(appointment.object_id) end end end
Version data entries
64 entries across 64 versions & 1 rubygems