-
Notifications
You must be signed in to change notification settings - Fork 26
Branches - Vi & C. Gutierrez #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…eir initiation variables
…k and receive a message of success
…k and receive a message of success
|
May have accidentally closed the request. |
slack.rbWhat We're Looking For
|
| api_call_list_channels | ||
| end | ||
|
|
||
| def api_call_list_channels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious to understand why y'all chose to put these methods (api_call_list_channels and api_call_list_users) here rather than as self.list in User and Channel. I assume this was your solution because you had some problem with creating self.list. Glad y'all problem-solved but curious what the problem was.
|
|
||
| make_users(user_response) | ||
|
|
||
| return user_response["ok"] == true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The return value here isn't being read when it's called so it isn't serving any purpose. Instead of handling this with a boolean return, this is where you raise a SlackApiError like is in the design scaffolding. I'm happy to talk more about that in person, if this feels too vague.
| @test_emoji = ":sunglasses:" | ||
| end | ||
|
|
||
| it "verifies that attempting to initialize an instance of User without appropriate data throws an ArgumentError" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the thoroughness of edge-case handling and testing.
slack.rb
Congratulations! You're submitting your assignment!
You and your partner should collaborate on the answers to these questions.
Comprehension Questions