Sha256: 825866fd9b26030a6a13143a3da21400112f4c4149d764417244850df8b38a3c
Contents?: true
Size: 422 Bytes
Versions: 4
Compression:
Stored size: 422 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.search.context) ransack_translation.should eq ar_translation end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ransack-1.2.3 | spec/ransack/translate_spec.rb |
ransack-1.2.2 | spec/ransack/translate_spec.rb |
ransack-1.2.1 | spec/ransack/translate_spec.rb |
ransack-1.2.0 | spec/ransack/translate_spec.rb |