Fix deprecation warning for rspec-mocks and fix true assertions