make example work on RSpec 2 and 3