Sha256: 457e09dfbdf0345994152b5fbc22849b765f43731751658a173c519d83079f74

Contents?: true

Size: 390 Bytes

Versions: 10

Compression:

Stored size: 390 Bytes

Contents

require "boxes/testing/matchers/base_matcher"

module Boxes
  module Testing
    module Matchers
      class HaveExitStatusMatcher < BaseMatcher
        def failure_message
          "expected that `#{actual.cmd}` would exit with #{expected}"
        end

        private

        def match(actual, expected)
          expected == actual.exit_status
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
boxes-3.7.0 lib/boxes/testing/matchers/have_exit_status_matcher.rb
boxes-3.6.1 lib/boxes/testing/matchers/have_exit_status_matcher.rb
boxes-3.6.0 lib/boxes/testing/matchers/have_exit_status_matcher.rb
boxes-3.5.0 lib/boxes/testing/matchers/have_exit_status_matcher.rb
boxes-3.4.0 lib/boxes/testing/matchers/have_exit_status_matcher.rb
boxes-3.3.1 lib/boxes/testing/matchers/have_exit_status_matcher.rb
boxes-3.3.0 lib/boxes/testing/matchers/have_exit_status_matcher.rb
boxes-3.2.0 lib/boxes/testing/matchers/have_exit_status_matcher.rb
boxes-3.1.0 lib/boxes/testing/matchers/have_exit_status_matcher.rb
boxes-3.0.0 lib/boxes/testing/matchers/have_exit_status_matcher.rb