Sha256: 8c8ddf42dadd301939faf0db82ecbb0f180c34bbe6c6f99b36844379f5458a21

Contents?: true

Size: 709 Bytes

Versions: 24

Compression:

Stored size: 709 Bytes

Contents

require 'rubygems'
require 'debug_helper'
$:.unshift File.expand_path('../../lib', __FILE__)

require 'asir'

module ASIR
  module Test
    class TestError < ::Exception; end
    class TestObject
      include ASIR::Client
      attr_accessor :spec, :arg, :cls, :msg, :transport, :message
      def initialize spec
        @spec = spec
      end

      def get_data!
        @transport = ASIR::Transport.current
        @message = @transport && @transport.message
      end

      def return_argument arg
        get_data!
        @arg = arg
        arg
      end

      def raise_exception! cls, msg
        get_data!
        @cls = cls
        @msg = msg
        raise cls, msg
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
asir-1.2.10 spec/spec_helper.rb
asir-1.2.9 spec/spec_helper.rb
asir-1.2.8 spec/spec_helper.rb
asir-1.2.7 spec/spec_helper.rb
asir-1.2.6 spec/spec_helper.rb
asir-1.2.5 spec/spec_helper.rb
asir-1.2.3 spec/spec_helper.rb
asir-1.2.2 spec/spec_helper.rb
asir-1.2.1 spec/spec_helper.rb
asir-1.2.0 spec/spec_helper.rb
asir-1.1.12 spec/spec_helper.rb
asir-1.1.11 spec/spec_helper.rb
asir-1.1.10 spec/spec_helper.rb
asir-1.1.9 spec/spec_helper.rb
asir-1.1.8 spec/spec_helper.rb
asir-1.1.7 spec/spec_helper.rb
asir-1.1.6 spec/spec_helper.rb
asir-1.1.5 spec/spec_helper.rb
asir-1.1.4 spec/spec_helper.rb
asir-1.1.3 spec/spec_helper.rb