diff options
author | David Gay <david@davidgay.org> | 2021-04-06 19:53:06 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-04-06 19:53:06 -0400 |
commit | 1d3c909a2fe818935afc7b4b60ea31c2cf3852fd (patch) | |
tree | fec13a991ea3f50f4fc92833e1a100a73a421fbd /test | |
parent | d24f83582d83cb4d296ab98923f4d7062611265d (diff) |
PTU types
Diffstat (limited to 'test')
-rw-r--r-- | test/fixtures/ptu_types.yml | 7 | ||||
-rw-r--r-- | test/models/ptu_type_test.rb | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/fixtures/ptu_types.yml b/test/fixtures/ptu_types.yml new file mode 100644 index 0000000..81d46fd --- /dev/null +++ b/test/fixtures/ptu_types.yml @@ -0,0 +1,7 @@ +# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + name: Normal + +two: + name: Fighting diff --git a/test/models/ptu_type_test.rb b/test/models/ptu_type_test.rb new file mode 100644 index 0000000..f7666df --- /dev/null +++ b/test/models/ptu_type_test.rb @@ -0,0 +1,9 @@ +require "test_helper" + +class PtuTypeTest < ActiveSupport::TestCase + test "can create type" do + assert_difference("PtuType.count", 1) do + PtuType.create(name: "TestType") + end + end +end |