refactor: in conditions_spec.rb