Pending example models minimal coverage (#23912)

This commit is contained in:
Matt Jankowski
2023-03-04 11:16:45 -05:00
committed by GitHub
parent 7f4412eeeb
commit 506b16cf59
9 changed files with 128 additions and 17 deletions

View File

@ -2,6 +2,14 @@
require 'rails_helper'
RSpec.describe IpBlock, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
describe IpBlock do
describe 'to_log_human_identifier' do
let(:ip_block) { described_class.new(ip: '192.168.0.1') }
it 'combines the IP and prefix into a string' do
result = ip_block.to_log_human_identifier
expect(result).to eq('192.168.0.1/32')
end
end
end