refactor GET agent conditions in agent_condition_spec.rb