aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/general_controller_spec.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-05-30 15:48:10 +0100
committerGareth Rees <gareth@mysociety.org>2014-06-25 10:40:37 +0100
commit4d9c89d0e416825eb52a720d74230f547454ba31 (patch)
tree7716d1bd5205beb872b949689f219b56d63f665c /spec/controllers/general_controller_spec.rb
parente5a73815f580d296572e11b71b5f3ed320bbe912 (diff)
Use regex based highlighting
Diffstat (limited to 'spec/controllers/general_controller_spec.rb')
-rw-r--r--spec/controllers/general_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/general_controller_spec.rb b/spec/controllers/general_controller_spec.rb
index 7590a5b42..f9c307913 100644
--- a/spec/controllers/general_controller_spec.rb
+++ b/spec/controllers/general_controller_spec.rb
@@ -188,7 +188,7 @@ describe GeneralController, 'when using xapian search' do
it 'should highlight words for a user-only request' do
get :search, :combined => "bob/users"
- assigns[:highlight_words].should == ['bob']
+ assigns[:highlight_words].should == [/\b(bob)\w*\b/iu]
end
it 'should show spelling corrections for a user-only request' do