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