From 4f65b091b0376dadd536979fae567589fe1e2366 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Sat, 29 Aug 2015 19:46:44 +0200 Subject: [PATCH] Fix "sort_link with hide order indicator" spec to fail properly This regression test, added in #473, tested the presence of the attribute name instead of the absence of the order indicators and would never fail. Josh Hunter / Jon Atack. --- spec/ransack/helpers/form_helper_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/ransack/helpers/form_helper_spec.rb b/spec/ransack/helpers/form_helper_spec.rb index 0a9534b..b963b2b 100644 --- a/spec/ransack/helpers/form_helper_spec.rb +++ b/spec/ransack/helpers/form_helper_spec.rb @@ -339,6 +339,7 @@ module Ransack ) } it { should match /Full Name/ } + it { should_not match /▼|▲/ } end describe '#sort_link with hide order indicator set to false' do