thoughtbot/shoulda-matchers — pull request #525 by seuros (2014-05-12 18:50:13+00:00)
Title: Update matchers.rb

ActiveRecord depend on ActiveModel, so if the latter is not defined, no need to check for the first.