Sha256: 44057e66e02c69c4c5c44e4cca4a00b704708a270e09bb272930eebd0fb742f1
Contents?: true
Size: 434 Bytes
Versions: 22
Compression:
Stored size: 434 Bytes
Contents
require 'mongoid_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.search.context) expect(ransack_translation).to eq ar_translation end end end end
Version data entries
22 entries across 22 versions & 3 rubygems