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.

console_spec.rb 575 B

2 years ago
123456789101112131415161718192021222324
  1. require 'cucumber/configuration'
  2. require 'cucumber/formatter/console'
  3. module Cucumber
  4. module Formatter
  5. describe Console do
  6. include Console
  7. it 'indents when padding is positive' do
  8. res = indent('a line', 2)
  9. expect(res).to eq ' a line'
  10. end
  11. it 'indents when padding is negative' do
  12. res = indent(' a line', -1)
  13. expect(res).to eq ' a line'
  14. end
  15. it 'handles excessive negative indentation properly' do
  16. res = indent(' a line', -10)
  17. expect(res).to eq 'a line'
  18. end
  19. end
  20. end
  21. end

No Description

Contributors (1)