Formatting
This commit is contained in:
parent
47db248da4
commit
075b879604
|
@ -6,7 +6,10 @@ module Ransack
|
|||
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 = Ransack::Translate.attribute(
|
||||
:title,
|
||||
:context => ::Namespace::Article.search.context
|
||||
)
|
||||
expect(ransack_translation).to eq ar_translation
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue