Add dictionary controller specs and factories

This commit is contained in:
maddiebaka
2023-10-13 21:40:49 -04:00
parent 73630643ac
commit 21445b6905
3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
FactoryBot.define do
factory :part_of_speech do
sequence(:pos) { |n| "test-#{n.to_s}" }
definition { "test definition" }
end
end

5
spec/factories/word.rb Normal file
View File

@@ -0,0 +1,5 @@
FactoryBot.define do
factory :word do
sequence(:word) { |n| "test-#{n.to_s}" }
end
end