(maint) Use RSpec 2.9 expectations

We have RSpec 2.11 listed in the project Gemfile but CI is still using
2.9. This commit switches the expectation syntax to the older version
for compatibility.
Merge branch 'maint-rspec_29_compat' into 1.7.x
Merge branch '1.7.x'