Sha256: 1ce111c4eb3585d187637925ddda3eb8d35eee58dc2df03b5e70e844a78cd1cf

Contents?: true

Size: 628 Bytes

Versions: 3

Compression:

Stored size: 628 Bytes

Contents

# frozen_string_literal: true

module ReadmeDSL
  def expect(_cond, _args = {})
    @current[:actions] << @action
    result.reset
  end
  alias_method :expect_any, :expect
  alias_method :expect_exit, :expect
  alias_method :expect_first, :expect
  alias_method :expect_last, :expect
  alias_method :expect_one, :expect

  def expect_fail
    @current[:actions] << @action
    result.reset
  end
  alias_method :expect_ok, :expect_fail

  def expect_none(cond = nil)
    expect(cond)
  end
  alias_method :expect_nothing, :expect_none

  def expect_sequence(&block)
    @current[:actions] << @action
    result.reset
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
teuton-2.9.2 lib/teuton/readme/dsl/expect.rb
teuton-2.9.1 lib/teuton/readme/dsl/expect.rb
teuton-2.9.0 lib/teuton/readme/dsl/expect.rb