Skip to content

Commit f88236a

Browse files
add scope note in moviegoer (#1834)
This is consistent with Simple Calculator.
1 parent 9ad0b0f commit f88236a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

exercises/concept/moviegoer/.docs/instructions.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ Members get free popcorn when they watch any movie.
4242

4343
Implement the `Moviegoer.claim_free_popcorn!` method.
4444
If a viewer is a movie club member, they should be rewarded with their free popcorn.
45-
If they are not, the method should raise the `NotMovieClubMemberError` exception defined at the top of the code.
46-
45+
If they are not, the method should raise the `UnsupportedOperation` exception defined at the top of the code.
4746

4847
```ruby
4948
Moviegoer.new(21, member: true).claim_free_popcorn!
@@ -52,3 +51,7 @@ Moviegoer.new(21, member: true).claim_free_popcorn!
5251
Moviegoer.new(17, member: false).claim_free_popcorn!
5352
#=> Exception was raised! (NotMovieClubMemberError)
5453
```
54+
55+
~~~~exercism/note
56+
In this exercise, you are expected to define the `UnsupportedOperation` exception for a specific scope.
57+
~~~~

0 commit comments

Comments
 (0)