Added some models
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

User
Item
Department
Categorie
AssignmentLog
Room
This commit is contained in:
2026-05-21 15:36:23 +02:00
parent 7b02520b6c
commit b7f0c35378
27 changed files with 387 additions and 2 deletions

15
test/fixtures/assignment_log2s.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
item: one
user: one
room: one
assigned_at: 2026-05-21 15:29:43
returned_at: 2026-05-21 15:29:43
two:
item: two
user: two
room: two
assigned_at: 2026-05-21 15:29:43
returned_at: 2026-05-21 15:29:43

15
test/fixtures/assignment_logs.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
item: one
user: one
room: one
assigned_at: 2026-05-21 14:46:06
returned_at: 2026-05-21 14:46:06
two:
item: two
user: two
room: two
assigned_at: 2026-05-21 14:46:06
returned_at: 2026-05-21 14:46:06

9
test/fixtures/categories.yml vendored Normal file
View File

@@ -0,0 +1,9 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
name: MyString
description: MyText
two:
name: MyString
description: MyText

9
test/fixtures/departments.yml vendored Normal file
View File

@@ -0,0 +1,9 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
name: MyString
code: MyString
two:
name: MyString
code: MyString

23
test/fixtures/items.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
name: MyString
serial_number: MyString
sku: MyString
sticker_id: MyString
price: 9.99
notes: MyText
category: one
user: one
room: one
two:
name: MyString
serial_number: MyString
sku: MyString
sticker_id: MyString
price: 9.99
notes: MyText
category: two
user: two
room: two

11
test/fixtures/rooms.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
name: MyString
building: MyString
floor: MyString
two:
name: MyString
building: MyString
floor: MyString

View File

@@ -0,0 +1,7 @@
require "test_helper"
class AssignmentLog2Test < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

View File

@@ -0,0 +1,7 @@
require "test_helper"
class AssignmentLogTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

View File

@@ -0,0 +1,7 @@
require "test_helper"
class CategoryTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

View File

@@ -0,0 +1,7 @@
require "test_helper"
class DepartmentTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

7
test/models/item_test.rb Normal file
View File

@@ -0,0 +1,7 @@
require "test_helper"
class ItemTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

7
test/models/room_test.rb Normal file
View File

@@ -0,0 +1,7 @@
require "test_helper"
class RoomTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end