Update RSpec version.
Add missing return values and documentation.