Fixed rspec deprecation warning concerning spec type.
Merge pull request #308 from aboutsource/fix_rspec_type_deprecation_warning

Fixed rspec deprecation warning concerning spec type.