spec/models/rbac_spec.rb
# separate them to match easier for failures
separate them to match easier for failures
separate them to match easier for failures
def expect_counts(actual, expected_targets, expected_count, expected_auth_count)
    expect(actual[1]).to eq(expected_count)
    expect(actual[2]).to eq(expected_auth_count)
    expect(actual[0].to_a).to match_array(expected_targets)
  end
def expect_counts ( actual , expected_targets , expected_count , expected_auth_count ) expect ( actual [ 1 ] ) . to eq ( expected_count ) expect ( actual [ 2 ] ) . to eq ( expected_auth_count ) expect ( actual [ 0 ] . to_a ) . to match_array ( expected_targets ) end
separate them to match easier for failures
separate them to match easier for failures
actual
<not_specific>
expected_targets
<not_specific>
expected_count
<not_specific>
expected_auth_count
<not_specific>