shared_draft_start_spec.rb 383 B

1234567891011
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe Ticket::SharedDraftStart, type: :model do
  4. subject(:shared_draft_start) { create(:ticket_shared_draft_start) }
  5. it { is_expected.to belong_to :group }
  6. it { is_expected.to validate_presence_of :name }
  7. it { expect(shared_draft_start.content).to be_a(Hash) }
  8. end