You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/spec/lib/admin/system_check/message_spec.rb

15 lines
433 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Admin::SystemCheck::Message do
subject(:check) { described_class.new(:key_value, :value_value, :action_value, :critical_value) }
it 'providers readers when initialized' do
expect(check.key).to eq :key_value
expect(check.value).to eq :value_value
expect(check.action).to eq :action_value
expect(check.critical).to eq :critical_value
end
end