From dd8b29d237aad1d56f2391cb0890fe2f13125710 Mon Sep 17 00:00:00 2001 From: Aline Ribeiro Date: Thu, 23 Apr 2020 16:45:22 -0700 Subject: [PATCH] [#1713] Change test to check for string with all moment keywords --- spec/services/moment_keywords_spec.rb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/spec/services/moment_keywords_spec.rb b/spec/services/moment_keywords_spec.rb index a0f6ec3190..10a6875524 100644 --- a/spec/services/moment_keywords_spec.rb +++ b/spec/services/moment_keywords_spec.rb @@ -16,11 +16,7 @@ it 'downcases words' do expect(keywords).to include('addiction') end - - it 'removes hyphen from compound words' do - expect(keywords).to include('self care') - end - + it 'removes special characters' do expect(keywords).to include('teachers') end @@ -29,10 +25,9 @@ expect(keywords).to include('blog') end - it 'returns an array of all the key words' do + it 'returns a string with all keywords' do expect(keywords).to eq( - ['free', 'description','name', 'blog', 'name', 'books', - 'addiction', 'self care', 'teachers'] + 'free description name blog name books addiction self-care teachers' ) end end