Add web app model, service to fetch metadata

This commit is contained in:
Râu Cao
2023-10-19 16:18:13 +02:00
parent e1b7e1b2ef
commit e56c9bd0d5
8 changed files with 81 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
FactoryBot.define do
factory :app_catalog_web_app, class: 'AppCatalog::WebApp' do
url { "https://myfavoritedrinks.remotestorage.io/" }
name { "My Favorite Drinks" }
short_name { "Drinks" }
description { nil }
theme_color { nil }
background_color { nil }
display { nil }
start_url { nil }
scope { nil }
share_target { nil }
end
end

View File

@@ -0,0 +1,5 @@
require 'rails_helper'
RSpec.describe AppCatalog::WebApp, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end