Skip to content

Commit

Permalink
Fix seeds and fixtures for changed entities
Browse files Browse the repository at this point in the history
  • Loading branch information
stage-rl committed Sep 18, 2023
1 parent f0acf3b commit 7435df5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
tenant.users.find_or_create_by!(email: email, name: "Site ADMIN User #{i}")
end

box = tenant.boxes.find_or_create_by!(name: "Dev box", uri: "ico://sk/83300252")
box = tenant.boxes.find_or_create_by!(name: "Dev box", uri: "ico://sk/83300252", short_name: 'DEV')
Govbox::ApiConnection.find_or_create_by!(sub: "SPL_Irvin_83300252_KK_24022023", box: box, api_token_private_key: File.read(Rails.root + "security/govbox_api_fix.pem"))

tenant.tags.find_or_create_by!(name: 'NASES', user_id: tenant.users.first.id)
Expand Down
3 changes: 2 additions & 1 deletion test/fixtures/boxes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ one:
name: MyString
uri: MyString
tenant: solver
short_name: MY1

two:
name: MyString
uri: MyString
tenant: solver

short_name: MY2
2 changes: 2 additions & 0 deletions test/fixtures/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

one:
name: MyString
external: false
visible: true
tenant: solver

two:
name: MyString
external: false
visible: false
tenant: solver

0 comments on commit 7435df5

Please sign in to comment.