Sha256: 26376ff75b76b522ef6719501deff3632c6d727b9fc8506c0d5ddb9a02911335

Contents?: true

Size: 921 Bytes

Versions: 2

Compression:

Stored size: 921 Bytes

Contents

# -*- encoding: utf-8 -*-

Omnitest.validate 'Expected output for show', suite: 'Reports', scenario: 'show' do |scenario|
  expected_output = <<-eos
katas-hello_world-ruby:                            Fully Verified (2 of 2)
  Test suite:                                        Katas
  Test scenario:                                     hello world
  Project:                                           ruby
  Source:                                            sdks/ruby/katas/hello_world.rb
  Execution result:
    Exit Status:                                       0
    Stdout:
      Hello, world!
    Stderr:
  Validations:
    Hello world validator:                             ✓ Passed
    default validator:                                 ✓ Passed
  Data from spies:
eos
  cleaned_up = scenario.result.stdout.gsub(/\e\[(\d+)(;\d+)*m/, '').gsub("\r\n", "\n")
  expect(cleaned_up).to include(expected_output)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omnitest-0.2.2 tests/omnitest/show_validations.rb
omnitest-0.2.1 tests/omnitest/show_validations.rb