Pending example models minimal coverage (#23912)
This commit is contained in:
parent
7f4412eeeb
commit
506b16cf59
9 changed files with 128 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue