new RSpec syntax to remove deprecation warnings