Projet

Général

Profil

Révision c82b960a

IDc82b960ad4293947acbff27429bad5639d3a4692
Parent 20eaf3c2
Enfant 6c2f0f10

Ajouté par Steve Traylen il y a plus de 3 ans

rubocop:auto_correct results

Voir les différences:

spec/classes/bridges_spec.rb
1
# frozen_string_literal: true
2

  
1 3
require 'spec_helper'
2 4

  
3 5
describe 'nftables' do
......
22 24
        it { is_expected.not_to contain_nftables__rule('default_fwd-bridge_lo_lo') }
23 25

  
24 26
        it {
25
          is_expected.to contain_nftables__rule('default_fwd-bridge_br0_br0').with(
27
          expect(subject).to contain_nftables__rule('default_fwd-bridge_br0_br0').with(
26 28
            order: '08',
27 29
            content: 'iifname br0 oifname br0 accept'
28 30
          )
29 31
        }
30 32

  
31 33
        it { is_expected.to contain_nftables__rule('default_fwd-bridge_br1_br1') }
34

  
32 35
        it {
33
          is_expected.to contain_nftables__rule('default_fwd-bridge_br1_br1').with(
36
          expect(subject).to contain_nftables__rule('default_fwd-bridge_br1_br1').with(
34 37
            order: '08',
35 38
            content: 'iifname br1 oifname br1 accept'
36 39
          )

Formats disponibles : Unified diff