From 80d0a2a6d8dccbb9888f9cd4dc3c3e7e208817e6 Mon Sep 17 00:00:00 2001 From: Douglas Barbosa Alexandre Date: Tue, 26 Jan 2016 17:01:56 -0200 Subject: [PATCH] Add model spec for SpamLog --- spec/models/spam_log_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 spec/models/spam_log_spec.rb diff --git a/spec/models/spam_log_spec.rb b/spec/models/spam_log_spec.rb new file mode 100644 index 00000000000..076f3e44c70 --- /dev/null +++ b/spec/models/spam_log_spec.rb @@ -0,0 +1,11 @@ +require 'spec_helper' + +describe SpamLog, models: true do + describe 'associations' do + it { is_expected.to belong_to(:user) } + end + + describe 'validations' do + it { is_expected.to validate_presence_of(:user) } + end +end