Skip to content

Last Will exercise + namespaces#1832

Open
VaiaPatta1985 wants to merge 17 commits into
exercism:mainfrom
VaiaPatta1985:last_will
Open

Last Will exercise + namespaces#1832
VaiaPatta1985 wants to merge 17 commits into
exercism:mainfrom
VaiaPatta1985:last_will

Conversation

@VaiaPatta1985
Copy link
Copy Markdown
Contributor

Adapted the Last Will exercise from the C++ track and added it to the Ruby learning track, together with the concept of namespaces.

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
@github-actions github-actions Bot closed this May 13, 2026
@kotp kotp reopened this May 13, 2026
@exercism exercism deleted a comment from github-actions Bot May 13, 2026
@exercism exercism deleted a comment from github-actions Bot May 13, 2026
Copy link
Copy Markdown
Member

@kotp kotp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure consistent formatting of the code and the code snippets.

Inspect the reasons for the failing CI tasks/checks.

Comment thread exercises/concept/last-will/.docs/introduction.md
Comment thread exercises/concept/last-will/.docs/introduction.md
Comment thread exercises/concept/last-will/.meta/exemplar.rb
Comment thread exercises/concept/last-will/.meta/exemplar.rb
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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants