Dalphi/dalphi

View on GitHub
spec/support/service_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage

Assignment Branch Condition size for role_is_valid is too high. [18.03/15]
Open

  def role_is_valid(model_instance, role_identifier, target_enum)
    model_instance.role = role_identifier
    expect(model_instance).to be_valid
    expect(model_instance.iterate?).to eq(target_enum == 0)
    expect(model_instance.merge?).to eq(target_enum == 1)
Severity: Minor
Found in spec/support/service_helper.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

There are no issues that match your filters.

Category
Status