You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cop should not trigger for a spec checking to see if the "dig" command was run.
Actual behavior
Cop fails while scanning ServerSpecs testing for dig command.
Steps to reproduce the problem
Scan this:
describehost('test-cname.chef.kitchen')doit{shouldbe_resolvable.by('dns')}cmd="#{dig('test-cname.chef.kitchen')} | grep 'CNAME'"expected="test-cname.chef.kitchen. 86400 IN CNAME client-ddns.chef.kitchen.\n"it"should have only one entry: #{ip_eth0}"doexpect(command(cmd).stdout).toeq(expected)endend
Fixesrubocop#8423.
This PR fixes an error for `Style/SingleArgumentDig`
when without a receiver.
This cop wouldn't have to offense when `dig` method without a receiver.
Expected behavior
Cop should not trigger for a spec checking to see if the "dig" command was run.
Actual behavior
Cop fails while scanning ServerSpecs testing for dig command.
Steps to reproduce the problem
Scan this:
Throws this error:
RuboCop version
The text was updated successfully, but these errors were encountered: