trabajo-afectivo/spec/db/migrate/issue_2455_follow_up_assignment_spec.rb

12 lines
373 B
Ruby
Raw Permalink Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
require 'rails_helper'
RSpec.describe Issue2455FollowUpAssignment, type: :db_migration do
let!(:group) { create(:group, follow_up_assignment: false) }
it 'sets groups to follow_up_assignment true' do
expect { migrate }.to change { group.reload.follow_up_assignment }.to(true)
end
end