Add reminder feature

This commit is contained in:
2020-02-12 13:57:03 +01:00
parent 9ec7b3ef50
commit e4a317111c
26 changed files with 414 additions and 3 deletions

View File

@ -0,0 +1,17 @@
require 'rails_helper'
RSpec.describe Reminder, type: :model do
subject { build(:reminder) }
describe 'validations' do
%w[title body date].each do |attribute|
describe attribute do
it 'must be present' do
expect(subject).to be_valid
subject[attribute] = nil
expect(subject).to_not be_valid
end
end
end
end
end