Skip to content

Commit

Permalink
Fixed error message
Browse files Browse the repository at this point in the history
  • Loading branch information
drrb committed May 3, 2013
1 parent 2185ccd commit e3b5fbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features/switch_to_multiple_users.feature
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Feature: Switch to multiple users
b@example.com: Johnny B
"""
When I type "git su ja jb ja"
Then I should see "Couldn't find a combination of unique users matching 'ja', 'jb' and 'ja'"
Then I should see "Couldn't find a combination of users matching 'ja', 'jb' and 'ja'"

Scenario: No group email configured
Given the Git configuration has "gitsu.groupEmailAddress" set to ""
Expand Down
2 changes: 1 addition & 1 deletion lib/gitsu/user_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def find(*search_terms)
end
end

find_unique_combination(searches) or raise "Couldn't find a combination of unique users matching #{search_terms.quote.to_sentence}"
find_unique_combination(searches) or raise "Couldn't find a combination of users matching #{search_terms.quote.to_sentence}"
end

private
Expand Down
2 changes: 1 addition & 1 deletion spec/gitsu/user_list_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module GitSu
user_file.add("Johnny A", "ja@example.com")
user_file.add("Johnny B", "jb@example.com")

expect {user_list.find("ja", "jb", "j")}.to raise_error "Couldn't find a combination of unique users matching 'ja', 'jb' and 'j'"
expect {user_list.find("ja", "jb", "j")}.to raise_error "Couldn't find a combination of users matching 'ja', 'jb' and 'j'"
end
end
context "when a search term only matches a user that was already matched, but the matching search term matched multiple users" do
Expand Down

0 comments on commit e3b5fbf

Please sign in to comment.