Permalink
Browse files

Add a spec for Admin::ActionLog (#9775)

  • Loading branch information...
ysksn authored and Gargron committed Jan 11, 2019
1 parent 43ff92d commit c059999ab3c2469df36e4fe9a62e6c2b4e7558bc
Showing with 8 additions and 0 deletions.
  1. +8 −0 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

0 comments on commit c059999

Please sign in to comment.