summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-02 22:38:32 -0400
committerDavid Gay <david@davidgay.org>2021-05-02 22:38:32 -0400
commit1b2de86007508ba86c6c9cb99fbdcac178045131 (patch)
treea007fc55acd2b54b5db108e3580928a9a006d71e /test
parent1d5083ddf7f2b285e63bb8019d38199e862fa1d8 (diff)
Character items and inventory, with ability to add and remove items
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/character_items.yml11
-rw-r--r--test/models/character_item_test.rb7
2 files changed, 18 insertions, 0 deletions
diff --git a/test/fixtures/character_items.yml b/test/fixtures/character_items.yml
new file mode 100644
index 0000000..67027fb
--- /dev/null
+++ b/test/fixtures/character_items.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ character: one
+ item: one
+ quantity: 1
+
+two:
+ character: two
+ item: two
+ quantity: 1
diff --git a/test/models/character_item_test.rb b/test/models/character_item_test.rb
new file mode 100644
index 0000000..713730b
--- /dev/null
+++ b/test/models/character_item_test.rb
@@ -0,0 +1,7 @@
+require "test_helper"
+
+class CharacterItemTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end