update RSpec examples
Merge pull request #929 from JoelQ/documentation-update

update RSpec examples