From 1b2de86007508ba86c6c9cb99fbdcac178045131 Mon Sep 17 00:00:00 2001 From: David Gay Date: Sun, 2 May 2021 22:38:32 -0400 Subject: Character items and inventory, with ability to add and remove items --- test/fixtures/character_items.yml | 11 +++++++++++ test/models/character_item_test.rb | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 test/fixtures/character_items.yml create mode 100644 test/models/character_item_test.rb (limited to 'test') 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 -- cgit v1.2.3