rspec, minor refactor