Skip to content

Commit 28db2dd

Browse files
committed
Remove slug from app model
1 parent 6693285 commit 28db2dd

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

lib/preflight_qa/app.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# frozen_string_literal: true
22

33
module PreflightQA
4-
App = Data.define(:app, :name, :slug, :modes, :raw) do
5-
def self.from_payload(slug, payload)
4+
App = Data.define(:app, :name, :modes, :raw) do
5+
def self.from_payload(app, payload)
66
new(
7-
app: slug,
7+
app: app,
88
name: payload["name"],
9-
slug: slug,
109
modes: payload["modes"] || [],
1110
raw: payload
1211
)

spec/preflight_qa/apps_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
PreflightQA::App.new(
2525
app: "apple_mail_mac",
2626
name: "Apple Mail (Mac)",
27-
slug: "apple_mail_mac",
2827
modes: %w[light dark],
2928
raw: {
3029
"name" => "Apple Mail (Mac)",

0 commit comments

Comments
 (0)