Fixed Rspec tests not passing