Sha256: 37a19a5e78624ee399c2aa135e503ffbcc082d49d066ac3b4a1d7c99806cbe38
Contents?: true
Size: 391 Bytes
Versions: 1
Compression:
Stored size: 391 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Mapper, '#rename' do include_context 'Mapper' let(:model) { mock_model(:user_id, :user_name) } it 'renames attributes' do tuple = { :user_id => 1, :user_name => 'Jane' } user = model.new(:user_id => 1, :user_name => 'Jane') expect(mapper.rename(:id => :user_id, :name => :user_name).load(tuple)).to eql(user) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-0.2.0 | spec/unit/rom/mapper/rename_spec.rb |