Silence rspec 3 complains

With backward-compatibility