Sha256: 31051a49580e37e1f4b4118461485886d1a17070f8f970ebcfc6b53550c8784d

Contents?: true

Size: 339 Bytes

Versions: 4

Compression:

Stored size: 339 Bytes

Contents

class Target
  attr_reader   :called
  attr_reader   :io_coordinator
  attr_accessor :exception
  attr_accessor :result

  def initialize
    @called = 0
    @result = true
  end

  def execute
    @io_coordinator = Thread.current[:io_coordinator]

    @called += 1

    if @exception
      raise @exception
    end

    @result
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
elevate-0.3.3 spec/helpers/target.rb
elevate-0.3.2 spec/helpers/target.rb
elevate-0.3.1 spec/helpers/target.rb
elevate-0.3 spec/helpers/target.rb