fixed bug in spec

rspec was failing