Update to RSpec 3

Update the code, test suite, and examples to RSpec 3.