removed type from expect{...}.not_to to get rid of deprecation warning