templates/test_spec.rb.erb in onceover-3.0.6 vs templates/test_spec.rb.erb in onceover-3.0.7
- old
+ new
@@ -19,10 +19,12 @@
<% test.nodes.each do |node| -%>
context "using fact set <%= node.name %>" do
let(:facts) { <%= node.fact_set %> }
<% if pre_condition -%>
let(:pre_condition) {
- pp = <<END
+ pp = <%= '<<' %>-END
+$onceover_class = '<%= cls.name %>'
+$onceover_node = '<%= node.name %>'
<%= pre_condition.chomp %>
END
}
<% end -%>
it { should compile }