Last Will exercise + namespaces#1832
Conversation
The tests for these two learning exercises now check whether the expected exception has been defined inside or outside the main class. Solves issue #6772
The tests for these two learning exercises now check whether the expected exception has been defined inside or outside the main class. Solves issue #6772
…o moviegoer_calculator_fix
kotp
left a comment
There was a problem hiding this comment.
Ensure consistent formatting of the code and the code snippets.
Inspect the reasons for the failing CI tasks/checks.
| def test_regular_moviegoers_dont_get_free_popcorn | ||
| assert_raises NotMovieClubMemberError do | ||
| expected_exception = Moviegoer.include?(NotMovieClubMemberError) ? Moviegoer::NotMovieClubMemberError : NotMovieClubMemberError | ||
| assert_raises expected_exception do |
There was a problem hiding this comment.
The moviegoer and simple calculator changes do not belong in this patch. You will likely need to update your main branch for your repository, and rebase these changes on to the current main.
There was a problem hiding this comment.
I hope it looks ok now.
There was a problem hiding this comment.
I think it's all done. Resolve?
|
@kotp what do I use for uuid? I need it in two places in config.json (for the new exercise and for the new concept). |
You can use the bin/configlet uuidOf course, you can use any tool that generates Version 4 UUID's. |
@kotp thanks! Where can I find the documentation you mention? I'm pretty sure I've looked through the documents in the repo and didn't see anything about generating UUIDs. |
Adapted the Last Will exercise from the C++ track and added it to the Ruby learning track, together with the concept of namespaces.