Skip to content

Commit

Permalink
[ifmeorg#1713] Change test to check for string with all moment keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
AlineRibeiro committed Apr 23, 2020
1 parent 735da0f commit dd8b29d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions spec/services/moment_keywords_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit dd8b29d

Please sign in to comment.