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.
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.
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.
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