rspec model test inclusion code example
Example: rspec model test inclusion
# if you use shoulda_matcher gem
expect(video).to validate_inclusion_of(:category).in_array(['Animals', 'Actions', 'Emotions', 'Food', 'Holidays ', 'Memes'])
# if you use shoulda_matcher gem
expect(video).to validate_inclusion_of(:category).in_array(['Animals', 'Actions', 'Emotions', 'Food', 'Holidays ', 'Memes'])