Replaced "have" matcher, as this has been deprecated from RSpec.