Fixed warning from RSpec shared examples