Sha256: 0a6bffdbba0a35668d34ca9f8bfc3571842ecb8405ff1a0a18886906b1cf8715

Contents?: true

Size: 252 Bytes

Versions: 4

Compression:

Stored size: 252 Bytes

Contents

require 'spec_helper'
module Alf
  describe Relation, '.rename' do

    let(:type){ Relation[name: String, status: Integer] }

    subject{ type.rename(name: :first_name) }

    it{ should eq(Relation[first_name: String, status: Integer]) }

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-relation/relation/factored-types/test_rename.rb
alf-core-0.14.0 spec/unit/alf-relation/relation/factored-types/test_rename.rb
alf-core-0.13.1 spec/unit/alf-relation/relation/factored-types/test_rename.rb
alf-core-0.13.0 spec/unit/alf-relation/relation/factored-types/test_rename.rb