From 081f27a3d10f0da04a8de89d44586e88dbf98450 Mon Sep 17 00:00:00 2001 From: ysksn Date: Fri, 11 Jan 2019 16:28:09 +0900 Subject: [PATCH] Add a spec for Admin::ActionLog (#9775) --- spec/models/admin/action_log_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/models/admin/action_log_spec.rb b/spec/models/admin/action_log_spec.rb index 81d7e1be3a..3495cc5141 100644 --- a/spec/models/admin/action_log_spec.rb +++ b/spec/models/admin/action_log_spec.rb @@ -1,4 +1,12 @@ +# frozen_string_literal: true + require 'rails_helper' RSpec.describe Admin::ActionLog, type: :model do + describe '#action' do + it 'returns action' do + action_log = described_class.new(action: 'hoge') + expect(action_log.action).to be :hoge + end + end end