Add regression spec for #549.

This is already fixed in 3.0 but it's good to add
a spec to prevent future regressions.
Merge pull request #553 from rspec/add-spec-for-issue-549

Add regression spec for #549.