diff options
author | ysksn <bluewhale1982@gmail.com> | 2019-01-11 16:28:09 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-01-11 07:28:09 +0000 |
commit | c059999ab3c2469df36e4fe9a62e6c2b4e7558bc (patch) | |
tree | 1238d66e6bdc9d7225d8d64769db287ef257feb3 /spec | |
parent | 43ff92dfc8626bd0700bf4f72802860d950a2403 (diff) |
Add a spec for Admin::ActionLog (#9775)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/admin/action_log_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/admin/action_log_spec.rb b/spec/models/admin/action_log_spec.rb index 81d7e1be3..3495cc514 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 |