From e653213db005d50d0c525b69ad2d90c57c888351 Mon Sep 17 00:00:00 2001 From: Jorie Tappa Date: Wed, 1 Aug 2018 10:48:39 -0500 Subject: Fix Lint/AmbiguousBlockAssociation violation --- spec/unit/provider/cron/crontab_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/unit/provider/cron/crontab_spec.rb') diff --git a/spec/unit/provider/cron/crontab_spec.rb b/spec/unit/provider/cron/crontab_spec.rb index f4782cc..bda7ddc 100644 --- a/spec/unit/provider/cron/crontab_spec.rb +++ b/spec/unit/provider/cron/crontab_spec.rb @@ -9,7 +9,7 @@ describe Puppet::Type.type(:cron).provider(:crontab) do def compare_crontab_text(have, want) # We should have four header lines, and then the text... - expect(have.lines.to_a[0..3]).to be_all { |x| x =~ %r{^# } } + expect(have.lines.to_a[0..3]).to(be_all { |x| x =~ %r{^# } }) expect(have.lines.to_a[4..-1].join('')).to eq(want) end -- cgit v1.2.3