message_spec.rb 427 B

1234567891011121314
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. describe Admin::SystemCheck::Message do
  4. subject(:check) { described_class.new(:key_value, :value_value, :action_value, :critical_value) }
  5. it 'providers readers when initialized' do
  6. expect(check.key).to eq :key_value
  7. expect(check.value).to eq :value_value
  8. expect(check.action).to eq :action_value
  9. expect(check.critical).to eq :critical_value
  10. end
  11. end