spec/macros4cuke/macro-step_spec.rb in macros4cuke-0.5.07 vs spec/macros4cuke/macro-step_spec.rb in macros4cuke-0.5.08

- old
+ new

@@ -5,11 +5,10 @@ require_relative '../../lib/macros4cuke/macro-step' # The class under test module Macros4Cuke # Open the module to avoid lengthy qualified names - describe MacroStep do let(:sample_phrase) { 'enter my credentials as <userid>' } let(:sample_template) do snippet = <<-SNIPPET @@ -64,16 +63,14 @@ end it 'should know the tags(placeholders) from its phrase and template' do expect(subject.args).to eq(%w(userid password)) end - end # context context 'Provided services:' do - let(:phrase_instance) { 'enter my credentials as "nobody"' } it 'should render the substeps' do text = subject.expand(phrase_instance, [ %w(password no-secret) ]) expectation = <<-SNIPPET Given I landed in the homepage @@ -148,14 +145,10 @@ instance = MacroStep.new(phrase, substeps, true) actual = instance.expand(phrase, []) expected = substeps.gsub(/<quotes>/, '"""') expect(actual).to eq(expected) end - - end # context - end # describe - end # module # End of file