Sha256: 9b3d74b28ad078c63839db483e244865b4be39fe048d529d34d151895d08e2c3

Contents?: true

Size: 411 Bytes

Versions: 1

Compression:

Stored size: 411 Bytes

Contents

require 'spec_helper'

module TransForms
  module MainModel
    describe Proxy do
      describe 'model_name' do
        it 'returns an ActiveModel::Name instance for the main_model instead of form model' do
          expect(ProxyModel.main_model).to eq :user
          expect(ProxyModel.name).to eq 'ProxyModel'
          expect(ProxyModel.model_name.name).to eq 'User'
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trans_forms-0.1.0 spec/trans_forms/main_model/proxy_spec.rb