Fixed rspec deprecation warning concerning spec type.