diff options
Diffstat (limited to 'spec/models/spam_log_spec.rb')
-rw-r--r-- | spec/models/spam_log_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/models/spam_log_spec.rb b/spec/models/spam_log_spec.rb index 90a2caaeb88..0c3875c4cb5 100644 --- a/spec/models/spam_log_spec.rb +++ b/spec/models/spam_log_spec.rb @@ -1,24 +1,24 @@ -require 'spec_helper' +require "spec_helper" describe SpamLog do let(:admin) { create(:admin) } - describe 'associations' do + describe "associations" do it { is_expected.to belong_to(:user) } end - describe 'validations' do + describe "validations" do it { is_expected.to validate_presence_of(:user) } end - describe '#remove_user' do - it 'blocks the user' do + describe "#remove_user" do + it "blocks the user" do spam_log = build(:spam_log) expect { spam_log.remove_user(deleted_by: admin) }.to change { spam_log.user.blocked? }.to(true) end - it 'removes the user' do + it "removes the user" do spam_log = build(:spam_log) user = spam_log.user |