Skip to content

Commit

Permalink
[ifmeorg#1713]Test if url is generated with spaces for compound words
Browse files Browse the repository at this point in the history
  • Loading branch information
AlineRibeiro committed Apr 24, 2020
1 parent cc526bb commit d0974e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/moments_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def resources_url_tags(moment)
filter_tags = matched_tags.uniq.map do |t|
"filter[]=#{t}&"
end
URI.encode(filter_tags.join)
filter_tags.join
end

private
Expand Down
2 changes: 1 addition & 1 deletion spec/helpers/moments_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
describe '#resources_url_tags' do
let(:user) { create(:user1) }
let(:moment) { create(:moment, name: 'tech industry', user: user) }
output = 'filter[]=tech%20industry&'
output = 'filter[]=tech industry&'
subject { controller.resources_url_tags(moment) }
it 'returns a filtered tag of matched resources' do
expect(subject).to eq(output)
Expand Down

0 comments on commit d0974e8

Please sign in to comment.