From d57e98915722f6c11b15a20a6befac848f581163 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Mon, 20 Oct 2014 22:31:43 +0200 Subject: [PATCH] Add missing symbol colons and TODO [skip ci] --- spec/ransack/helpers/form_builder_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/ransack/helpers/form_builder_spec.rb b/spec/ransack/helpers/form_builder_spec.rb index 346f669..b3e3da1 100644 --- a/spec/ransack/helpers/form_builder_spec.rb +++ b/spec/ransack/helpers/form_builder_spec.rb @@ -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/