From c8bc035f282f0bb8384f31db584ef9a59a2560ce Mon Sep 17 00:00:00 2001 From: "David P. Steelman" Date: Fri, 31 May 2019 11:45:23 -0400 Subject: [PATCH] LIBSEARCH-155. Updated to match changes made to NCSU pull request Updated the code to match a few editing changes made in the NCSU pull request (https://github.com/NCSU-Libraries/quick_search/pull/29) https://issues.umd.edu/browse/LIBSEARCH-155 --- test/dummy/config/best_bets.yml | 6 +++--- test/integration/best_bets_initializer_test.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/dummy/config/best_bets.yml b/test/dummy/config/best_bets.yml index 3ac2da4..f4f482d 100644 --- a/test/dummy/config/best_bets.yml +++ b/test/dummy/config/best_bets.yml @@ -84,9 +84,9 @@ best_bets: keywords: - pubmed - pub med - testbestbet: - title: Test Best Bet Entry - description: This is a test Best Bet entry + testbestbetdash: + title: Test Best Bet Entry with Dash in Keyword + description: This is a test Best Bet entry to test keywords containing a dash url: http://example.org keywords: - 123-456 diff --git a/test/integration/best_bets_initializer_test.rb b/test/integration/best_bets_initializer_test.rb index 5899aae..75e734b 100644 --- a/test/integration/best_bets_initializer_test.rb +++ b/test/integration/best_bets_initializer_test.rb @@ -10,6 +10,6 @@ class BestBestInitializerTest < ActionDispatch::IntegrationTest json = JSON.parse(page.html) first_result = json['results'][0] - assert_equal 'testbestbet', first_result['id'] + assert_equal 'testbestbetdash', first_result['id'] end end