```ruby
overflow_size = stack_size + 1
# we also need to make sure what type of error it is.
expect {overflow_size.times { stack.push("hi")} }.to raise_error(StackOverflow)
```