FEATURE: highlight search results

This commit is contained in:
Sam
2014-09-03 17:08:47 +10:00
parent d4f08f442c
commit 9c29c1c072
3 changed files with 8 additions and 13 deletions

View File

@@ -15,7 +15,7 @@ describe SearchController do
response.should be_success
data = JSON.parse(response.body)
data['posts'][0]['id'].should == my_post.id
data['posts'][0]['blurb'].should == 'this is my really awesome post'
data['posts'][0]['blurb'].should == 'this is my really <span class=\'highlighted\'>awesome</span> post'
data['topics'][0]['id'].should == my_post.topic_id
end
end