expect(inactive_schedule.errors[:base]).tocontain_exactly("Maximum number of #{inactive_schedule.class.limit_name.humanize(capitalize: false)} (1) exceeded")
expect(inactive_schedule.errors[:base]).tocontain_exactly("Maximum number of #{inactive_schedule.class.limit_name.humanize(capitalize: false)} (1) exceeded")
end
end
it'allows the schedule to be deactivated',:aggregate_failuresdo