Sha256: 8e82a539b460def9c6f86fd651d0cfd627b8d7bcc375e3820218e4641dbaec95

Contents?: true

Size: 699 Bytes

Versions: 3

Compression:

Stored size: 699 Bytes

Contents

Feature: Passing exit code

  The exit code should always be zero when the tests pass

  Background:
    Given a fixture application
    And a file named "spec/ui/ui_component_spec.rb" with:
      """ruby
      require 'simulacrum_helper'

      describe 'UI Component' do
        component :ui_component do |options|
          options.url = '/ui_component.html'
        end
        it { should look_the_same }
      end
      """

  Scenario: Passing tests
    Given a reference image for "ui_component" with content: "a1.png"
    When I run `simulacrum`
    Then the exit status should be 0
    And the output should contain "1 example, 0 failures"
    And the output should not contain "pending"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simulacrum-0.3.2 features/exit_codes/passing.feature
simulacrum-0.3.1 features/exit_codes/passing.feature
simulacrum-0.3.0 features/exit_codes/passing.feature