spec/macros4cuke/templating/engine_spec.rb in macros4cuke-0.5.07 vs spec/macros4cuke/templating/engine_spec.rb in macros4cuke-0.5.08

- old
+ new

@@ -5,14 +5,11 @@ # Load the class under test require_relative '../../../lib/macros4cuke/templating/engine' module Macros4Cuke - module Templating # Open this namespace to get rid of module qualifier prefixes - - describe Engine do # Sample template (consisting of a sequence of steps) let(:sample_template) do source = <<-SNIPPET Given I landed in the homepage @@ -174,15 +171,13 @@ sample_text = 'begin <<some_tag> > end' error_message = "Nested opening chevron '<'." expect { Engine.parse(sample_text) }.to raise_error( StandardError, error_message) end - end # context context 'Creation and initialization:' do - it 'should accept an empty template text' do expect { Engine.new '' }.not_to raise_error end it 'should be created with a template text' do @@ -244,15 +239,13 @@ wrong_end = sophisticated_template.sub(/<\?birthdate>/, '</foobar>') msg = 'End of section</foobar> found'\ ' while no corresponding section is open.' expect { Engine.new wrong_end }.to raise_error(StandardError, msg) end - end # context context 'Provided services:' do - it 'should know the variable(s) it contains' do # Case using the sample template expect(subject.variables).to be == %w(userid password) # Case of an empty source template text @@ -350,13 +343,10 @@ SNIPPET expect(rendered_text).to eq(expected) end end # context - end # describe - end # module - end # module # End of file