From 627f56d32e28653ec5dfc3dac4be9629a43ab0a5 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Tue, 26 Jan 2021 07:26:20 +0100 Subject: [PATCH] remove obsolete files. #697 --- app/serializers/role_serializer.rb | 19 ------------------- spec/models/role_spec.rb | 17 ----------------- 2 files changed, 36 deletions(-) delete mode 100644 app/serializers/role_serializer.rb delete mode 100644 spec/models/role_spec.rb diff --git a/app/serializers/role_serializer.rb b/app/serializers/role_serializer.rb deleted file mode 100644 index 6a8bdb452..000000000 --- a/app/serializers/role_serializer.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -class RoleSerializer - include FastJsonapi::ObjectSerializer - set_key_transform :camel_lower - set_type :roles - set_id :uid - - attributes :role_name, - :created, - :updated, - :deleted - - belongs_to :contact, record_type: :contacts - - attribute :created, &:created_at - attribute :updated, &:updated_at - attribute :deleted, &:deleted_at -end diff --git a/spec/models/role_spec.rb b/spec/models/role_spec.rb deleted file mode 100644 index f506efe8e..000000000 --- a/spec/models/role_spec.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -require "rails_helper" - -describe Role, type: :model do - let(:role) { create(:role) } - - describe "Associations" do - it "provider" do - expect(role.provider.uid).to eq("Josiah Carberry") - end - - it "contact" do - expect(role.contact.uid).to eq("Josiah Carberry") - end - end -end