The method does not exists in original thoughtbot/shoulda-matchers
that is in you app. The version you're referring is a fork of original gem.
You can use this gem instead of original one, just set it source in Gemfile
gem 'shoulda-matchers', :git => 'https://github.com/moffff/shoulda-matchers.git'
But you should understand that forked and modified version can work unstable, does not include latest updates and fixes, and so on.