Formatting

This commit is contained in:
Jon Atack 2014-10-13 20:23:13 +02:00
parent 47db248da4
commit 075b879604
1 changed files with 4 additions and 1 deletions

View File

@ -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