You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

message_spec.rb 969 B

2 years ago
12345678910111213141516171819202122232425262728293031323334353637383940
  1. # frozen_string_literal: true
  2. require 'spec_helper'
  3. require 'cucumber/formatter/spec_helper'
  4. require 'cucumber/formatter/message'
  5. require 'cucumber/cli/options'
  6. module Cucumber
  7. module Formatter
  8. describe Message do
  9. extend SpecHelperDsl
  10. include SpecHelper
  11. before(:each) do
  12. Cucumber::Term::ANSIColor.coloring = false
  13. @out = StringIO.new
  14. @formatter = Message.new(actual_runtime.configuration.with_options(out_stream: @out))
  15. end
  16. describe 'given a single feature' do
  17. before(:each) do
  18. run_defined_feature
  19. end
  20. describe 'with a scenario' do
  21. define_feature <<-FEATURE
  22. Feature: Banana party
  23. Scenario: Monkey eats banana
  24. Given there are bananas
  25. FEATURE
  26. it 'outputs the undefined step' do
  27. expect(@out.string).to include '"status":"UNDEFINED"'
  28. end
  29. end
  30. end
  31. end
  32. end
  33. end

No Description

Contributors (1)