Sha256: 633f8e429476530ec7076e01fa783b08ddada0c596c260791ebe432ccc461917

Contents?: true

Size: 361 Bytes

Versions: 1

Compression:

Stored size: 361 Bytes

Contents

module KJess
  module Spec
    ROOT = File.expand_path( "..", __FILE__ )
    def self.project_root
      File.expand_path( "..", ROOT )
    end

    def self.reset_server( client )
      client.flush_all
      qlist = client.stats['queues']
      if qlist then
        qlist.keys.each do |q|
          client.delete( q )
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kjess-1.0.0 spec/utils.rb