Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rails_helper'
- RSpec.describe Robot, 'Validations', type: :model do
- it { is_expected.to validate_presence_of(:name) }
- it { is_expected.to validate_presence_of(:color) }
- end
- RSpec.describe Robot, 'Associations', type: :model do
- it { is_expected.to belong_to(:color) }
- it { is_expected.to have_and_belong_to_many(:statuses) }
- end
- RSpec.describe Robot, 'Class Methods', type: :model do
- # class methods specs go here...
- end
- RSpec.describe Robot, 'Instance Methods', type: :model do
- # instance methods specs go here...
- end
Add Comment
Please, Sign In to add comment