Fix spec error

This fix a workaround incompatible with Rspec 3.0.