spec/lib/hotcell/commands/include_spec.rb in hotcell-0.2.0 vs spec/lib/hotcell/commands/include_spec.rb in hotcell-0.3.0
- old
+ new
@@ -25,10 +25,10 @@
let(:resolver) { resolver_class.new templates }
let(:render_options) { { shared: { resolver: resolver } } }
describe '#render' do
specify { parse("{{ include 'template0' }}").render(render_options).should =~ /Template not found/ }
- specify { parse("{{ include 'template1' }}").render(render_options).should == 'Hello' }
+ specify { parse("{{ include 'template1' }}").render!(render_options).should == 'Hello' }
specify { parse("{{ include 'template2' }}").render(render_options).should == 'Hello, ' }
specify { parse(
"{{ include 'template2', name: 'Pyrosha' }}"
).render(render_options).should == 'Hello, Pyrosha' }
specify { parse(