Rspec tests fix for Travis CI