Guest User

Untitled

a guest
Jul 17th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. require 'rails_helper'
  2.  
  3. RSpec.describe Robot, 'Validations', type: :model do
  4. it { is_expected.to validate_presence_of(:name) }
  5. it { is_expected.to validate_presence_of(:color) }
  6. end
  7.  
  8. RSpec.describe Robot, 'Associations', type: :model do
  9. it { is_expected.to belong_to(:color) }
  10. it { is_expected.to have_and_belong_to_many(:statuses) }
  11. end
  12.  
  13. RSpec.describe Robot, 'Class Methods', type: :model do
  14. # class methods specs go here...
  15. end
  16.  
  17. RSpec.describe Robot, 'Instance Methods', type: :model do
  18. # instance methods specs go here...
  19. end
Add Comment
Please, Sign In to add comment