spec/macros4cuke/templating/engine_spec.rb in macros4cuke-0.4.06 vs spec/macros4cuke/templating/engine_spec.rb in macros4cuke-0.4.07

- old
+ new

@@ -206,12 +206,12 @@ expect(names).to eq(%w(<?address> <?birthdate> <?dummy>)) end it 'should complain when a placeholder is empty or blank' do text_w_empty_arg = sample_template.sub(/userid/, '') - msg = 'An empty or blank argument occurred in ' + - %Q('And I fill in "Username" with "<>"'.) + msg = %Q(An empty or blank argument occurred in\ + 'And I fill in "Username" with "<>"'.) expect { Engine.new text_w_empty_arg }.to raise_error( Macros4Cuke::EmptyArgumentError, msg) end it 'should complain when a placeholder contains an invalid character' do @@ -240,11 +240,11 @@ end it 'should complain when a closing tag is found without opening tag' do # Replacing an end of section tag by another... wrong_end = sophisticated_template.sub(/<\?birthdate>/, '</foobar>') - msg = 'End of section</foobar> found' + - ' while no corresponding section is open.' + 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