Sha256: 180234e23bef18a606e2b182467ac2344b0e25e0464c84589486c64b24a4b918
Contents?: true
Size: 459 Bytes
Versions: 41
Compression:
Stored size: 459 Bytes
Contents
require 'spec_helper' module Ransack describe Translate do describe '.attribute' do it 'translate namespaced attribute like AR does' do ar_translation = ::Namespace::Article.human_attribute_name(:title) ransack_translation = Ransack::Translate.attribute( :title, :context => ::Namespace::Article.ransack.context ) expect(ransack_translation).to eq ar_translation end end end end
Version data entries
41 entries across 41 versions & 4 rubygems