Initial commit

This commit is contained in:
Yaser
2026-08-13 19:56:46 +03:30
commit de1d57a67b
474 changed files with 43185 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# frozen_string_literal: true
describe API::V2::Entities::Label do
let!(:create_member_permission) do
create :permission,
role: 'member'
end
let(:record) { create(:label) }
subject { OpenStruct.new API::V2::Entities::Label.represent(record).serializable_hash }
it { expect(subject.key).to eq record.key }
it { expect(subject.value).to eq record.value }
it { expect(subject.scope).to eq record.scope }
it { expect(subject.created_at).to eq record.created_at.iso8601 }
it { expect(subject.updated_at).to eq record.updated_at&.iso8601 }
end