RSpec book errata #57 - undefined method `include' : what to do?

http://pragprog.com/titles/achbd/errata

nr 57:
Ruby 1.8.7
expected [] to include “Welcome to Codebreaker!”

Ruby 1.9.1
undefined method `include’ for #Object:0x80b32c90 (NoMethodError)

class Output
def messages
@messages ||= []
end

def puts(message)
messages << message
end
end

Then /^I should see “([^"]*)”$/ do |message|
output.messages.should include(message)
end

I am using Ruby 1.9.2 with cucumber 0.7.3 and Rspec 2.0.0.beta.9.
Is there a fix for this somewhere for this stack of gems and ruby
version?

One hack “solution” looks like this :stuck_out_tongue:

output.messages.include?(mark).should