Commit 5bc02998 authored by Florian Hanke's avatar Florian Hanke

Fix search result text

"whose" would be correct if pods were persons. I changed it such that it uses "with",
as in "Unable to find a pod with name matching ..."
parent b2589060
...@@ -20,8 +20,8 @@ module Pod ...@@ -20,8 +20,8 @@ module Pod
result = all.map { |s| s.search_by_name(query, full_text_search) }.flatten result = all.map { |s| s.search_by_name(query, full_text_search) }.flatten
if result.empty? if result.empty?
extra = ", summary, or description" if full_text_search extra = ", summary, or description" if full_text_search
raise(Informative, "Unable to find a pod who's name" \ raise(Informative, "Unable to find a pod with name" \
"#{extra} matches `#{query}'") "#{extra} matching `#{query}'")
end end
result result
end end
......
...@@ -64,7 +64,7 @@ describe "Pod::Command" do ...@@ -64,7 +64,7 @@ describe "Pod::Command" do
config.repos_dir = tmp_repos_path config.repos_dir = tmp_repos_path
end end
it "searches for a pod who's name matches the given query ignoring case" do it "searches for a pod with name matching the given query ignoring case" do
[ [
[ [
' s ', ' s ',
...@@ -96,7 +96,7 @@ describe "Pod::Command" do ...@@ -96,7 +96,7 @@ describe "Pod::Command" do
end end
end end
it "searches for a pod who's name, summary, or description matches the given query ignoring case" do it "searches for a pod with name, summary, or description matching the given query ignoring case" do
[ [
[ [
'systemCONfiguration', 'systemCONfiguration',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment