spec/rake/funnel/support/template_engine_spec.rb in rake-funnel-0.0.6.pre vs spec/rake/funnel/support/template_engine_spec.rb in rake-funnel-0.1.0.pre

- old
+ new

@@ -39,11 +39,11 @@ context 'without binding' do it 'should not support contextual variables' do var = 42 template = '<%= var %>' - expect(lambda { described_class.render(template) }).to raise_error + expect { described_class.render(template) }.to raise_error end end context 'with binding' do def get_binding(value) @@ -57,9 +57,9 @@ end end end it 'should report errors with file name' do - expect(lambda { described_class.render('<%= undefined %>', 'file.template') }) + expect { described_class.render('<%= undefined %>', 'file.template') } .to raise_error { |ex| expect(ex.backtrace.join("\n")).to match(/file\.template/) } end end