Fix deprecation warnings by rspec raise_error

Issue is when `raise_error` and `not_to` are use. 

See: https://github.com/rspec/rspec-expectations/issues/231