Sha256: 486e995b0ca989793a0e36c31c1fc7c1b666f3fb0351af7de1b7bf317a7cacbc

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

require 'test_helper'

class AliasesTest < ActiveSupport::TestCase

  setup do
    Makers.define do
      maker :user, aliases: [:owner, :author] do
        name 'name'
        phone
      end
    end
  end

  test 'aliases' do
    assert_kind_of Makers::Maker, Makers.definitions.find(:user)
    assert_kind_of Makers::Maker, Makers.definitions.find(:owner)
    assert_kind_of Makers::Maker, Makers.definitions.find(:author)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
makers-0.1.3 test/aliases_test.rb
makers-0.1.2 test/aliases_test.rb