diff options
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 |