Sha256: e046073a0763daaccb6d0a886e812cd08d504be829159de57760e443ce0bd330

Contents?: true

Size: 1.24 KB

Versions: 19

Compression:

Stored size: 1.24 KB

Contents

require 'spec_helper'
require 'cucumber/formatter/spec_helper'
require 'cucumber/formatter/debug'
require 'cucumber/cli/options'

module Cucumber
  module Formatter
    describe Debug do
      extend SpecHelperDsl
      include SpecHelper

        before(:each) do
          Cucumber::Term::ANSIColor.coloring = false
          @out = StringIO.new
          @formatter = Debug.new(runtime, @out, {})
        end

        describe "given a single feature" do
          before(:each) { run_defined_feature }

          describe "with a scenario" do
            define_feature <<-FEATURE
          Feature: Banana party

            Scenario: Monkey eats banana
              Given there are bananas
            FEATURE

            it "outputs the events as expected" do
              expect(@out.string).to eq(<<EXPECTED)
before_test_case
before_features
before_feature
before_tags
after_tags
feature_name
before_test_step
after_test_step
before_test_step
before_feature_element
before_tags
after_tags
scenario_name
before_steps
before_step
before_step_result
step_name
after_step_result
after_step
after_test_step
after_steps
after_feature_element
after_test_case
after_feature
after_features
done
EXPECTED
            end
          end
        end
    end

  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
cucumber-2.99.0 spec/cucumber/formatter/debug_spec.rb
mobiusloop-0.1.5 spec/cucumber/formatter/debug_spec.rb
cucumber-2.4.0 spec/cucumber/formatter/debug_spec.rb
mobiusloop-0.1.3 spec/cucumber/formatter/debug_spec.rb
mobiusloop-0.1.2 spec/cucumber/formatter/debug_spec.rb
cucumber-2.3.3 spec/cucumber/formatter/debug_spec.rb
cucumber-2.3.2 spec/cucumber/formatter/debug_spec.rb
cucumber-2.3.1 spec/cucumber/formatter/debug_spec.rb
cucumber-2.3.0 spec/cucumber/formatter/debug_spec.rb
cucumber-2.2.0 spec/cucumber/formatter/debug_spec.rb
cucumber-2.1.0 spec/cucumber/formatter/debug_spec.rb
cucumber-2.0.2 spec/cucumber/formatter/debug_spec.rb
cucumber-2.0.1 spec/cucumber/formatter/debug_spec.rb
cucumber-2.0.0 spec/cucumber/formatter/debug_spec.rb
cucumber-2.0.0.rc.5 spec/cucumber/formatter/debug_spec.rb
cucumber-2.0.0.rc.4 spec/cucumber/formatter/debug_spec.rb
cucumber-2.0.0.rc.3 spec/cucumber/formatter/debug_spec.rb
cucumber-2.0.0.rc.2 spec/cucumber/formatter/debug_spec.rb
cucumber-2.0.0.rc.1 spec/cucumber/formatter/debug_spec.rb