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(<