Skip to content

Commit 348a04c

Browse files
committed
rubocop fixes
1 parent 94ac0db commit 348a04c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

spec/functions/stdlib_deferrable_epp_spec.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,24 @@
55
let(:pre_condition) do
66
'function epp($str, $data) { return "rendered"}'
77
end
8+
89
it {
9-
is_expected.to run.with_params('mymod/template.epp', {'foo' => 'bar'}).and_return('rendered')
10+
is_expected.to run.with_params('mymod/template.epp', { 'foo' => 'bar' }).and_return('rendered')
1011
}
1112
end
1213

1314
context 'defers rendering with deferred input' do
14-
let(:pre_condition) do (<<~END)
15+
let(:pre_condition) do
16+
<<~END
1517
function epp($str, $data) { fail("should not have invoked epp()") }
1618
function find_template($str) { return "path" }
1719
function file($path) { return "foo: <%= foo %>" }
1820
END
1921
end
22+
2023
it {
21-
foo = Puppet::Pops::Types::TypeFactory.deferred.create('join', [1,2,3])
22-
is_expected.to run.with_params('mymod/template.epp', {'foo' => foo }) #.and_return(a_kind_of Puppet::Pops::Evaluator::DeferredValue)
24+
foo = Puppet::Pops::Types::TypeFactory.deferred.create('join', [1, 2, 3])
25+
is_expected.to run.with_params('mymod/template.epp', { 'foo' => foo }) # .and_return(a_kind_of Puppet::Pops::Evaluator::DeferredValue)
2326
}
2427
end
2528
end

0 commit comments

Comments
 (0)