Fix spec error

Temporary fix of incompatibility of Rspec 3.0.