From e0cadfb490d73dafe12e453f756019dce0d0116a Mon Sep 17 00:00:00 2001 From: Vaia Patta Date: Sat, 16 May 2026 23:35:48 +0300 Subject: [PATCH 1/2] added scope note in moviegoer as was done in simple calculator --- exercises/concept/moviegoer/.docs/instructions.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/exercises/concept/moviegoer/.docs/instructions.md b/exercises/concept/moviegoer/.docs/instructions.md index 1cb486cf23..4e332cae9e 100644 --- a/exercises/concept/moviegoer/.docs/instructions.md +++ b/exercises/concept/moviegoer/.docs/instructions.md @@ -42,7 +42,11 @@ Members get free popcorn when they watch any movie. Implement the `Moviegoer.claim_free_popcorn!` method. If a viewer is a movie club member, they should be rewarded with their free popcorn. -If they are not, the method should raise the `NotMovieClubMemberError` exception defined at the top of the code. +If they are not, the method should raise the ` +~~~~exercism/note +In this exercise, you are expected to define the `UnsupportedOperation` exception for a specific scope. +~~~~ +` exception defined at the top of the code. ```ruby @@ -52,3 +56,11 @@ Moviegoer.new(21, member: true).claim_free_popcorn! Moviegoer.new(17, member: false).claim_free_popcorn! #=> Exception was raised! (NotMovieClubMemberError) ``` + +~~~~exercism/note +In this exercise, you are expected to define the ` +~~~~exercism/note +In this exercise, you are expected to define the `UnsupportedOperation` exception for a specific scope. +~~~~ +` exception for a specific scope. +~~~~ From 2f1c777461e0237ec61be75152f57acd3e8f45a0 Mon Sep 17 00:00:00 2001 From: Vaia Patta Date: Sat, 16 May 2026 23:44:35 +0300 Subject: [PATCH 2/2] correction --- exercises/concept/moviegoer/.docs/instructions.md | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/exercises/concept/moviegoer/.docs/instructions.md b/exercises/concept/moviegoer/.docs/instructions.md index 4e332cae9e..fa8d82030c 100644 --- a/exercises/concept/moviegoer/.docs/instructions.md +++ b/exercises/concept/moviegoer/.docs/instructions.md @@ -42,12 +42,7 @@ Members get free popcorn when they watch any movie. Implement the `Moviegoer.claim_free_popcorn!` method. If a viewer is a movie club member, they should be rewarded with their free popcorn. -If they are not, the method should raise the ` -~~~~exercism/note -In this exercise, you are expected to define the `UnsupportedOperation` exception for a specific scope. -~~~~ -` exception defined at the top of the code. - +If they are not, the method should raise the `UnsupportedOperation` exception defined at the top of the code. ```ruby Moviegoer.new(21, member: true).claim_free_popcorn! @@ -57,10 +52,6 @@ Moviegoer.new(17, member: false).claim_free_popcorn! #=> Exception was raised! (NotMovieClubMemberError) ``` -~~~~exercism/note -In this exercise, you are expected to define the ` ~~~~exercism/note In this exercise, you are expected to define the `UnsupportedOperation` exception for a specific scope. ~~~~ -` exception for a specific scope. -~~~~