Skip to content

Commit

Permalink
Forgot to mention setting api on/off in error.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Jan 12, 2016
1 parent b9d46b9 commit f92b862
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion slack-gamebot/commands/set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def self.call(client, data, match)
logger.info "SET: #{client.team} - #{user.user_name}, does not have any bot aliases"
end
else
fail SlackGamebot::Error, "Invalid setting #{k}, you can _set gifs on|off_ and _aliases_."
fail SlackGamebot::Error, "Invalid setting #{k}, you can _set gifs on|off_, _api on|off_ and _aliases_."
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/slack-gamebot/commands/set_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
context 'invalid' do
it 'error' do
expect(message: "#{SlackRubyBot.config.user} set invalid on").to respond_with_slack_message(
'Invalid setting invalid, you can _set gifs on|off_ and _aliases_.'
'Invalid setting invalid, you can _set gifs on|off_, _api on|off_ and _aliases_.'
)
end
end
Expand Down

0 comments on commit f92b862

Please sign in to comment.