Fix bug in rspec, set up the spec_helper and update .travis and .yardopts.