Add missing symbol colons and TODO [skip ci]

This commit is contained in:
Jon Atack 2014-10-20 22:31:43 +02:00
parent 8505e8673b
commit d57e989157
1 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ module Ransack
context 'with `has_many` association attributes' do
it 'localizes "#{pluralized model}_#{attribute name}_#{predicate}"' do
it 'localizes :"#{pluralized model}_#{attribute name}_#{predicate}"' do
html = @f.label :articles_body_start
expect(html).to match /Article maiN BoDy starts with/
end
@ -81,10 +81,10 @@ module Ransack
end
end
# TODO: DRY the #label associations specs with a common method.
context 'with `belongs_to` association attributes' do
it 'localizes "#{singularized model}_#{attribute name}_#{predicate}"' do
it 'localizes :"#{singularized model}_#{attribute name}_#{predicate}"' do
@controller.view_context.search_form_for Comment.search do |f|
html = f.label :article_body_start
expect(html).to match /Article maiN BoDy starts with/