Add model specs
This commit is contained in:
8
spec/models/word_spec.rb
Normal file
8
spec/models/word_spec.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Word, type: :model do
|
||||
it "successfully creates a new word" do
|
||||
word = FactoryBot.create(:word)
|
||||
expect(Word.count).to eq(1)
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user