Sha256: 45ff21fef37e6d841c85b57f22ed27ecf33615386b5856cda2983a467136e183

Contents?: true

Size: 1.29 KB

Versions: 17

Compression:

Stored size: 1.29 KB

Contents

require 'simplecov'
SimpleCov.start

require 'minitest/autorun'
require 'minitest/spec'
require 'minitest/mock'

require 'awesome_print'
module Minitest::Assertions
  def mu_pp(obj)
    obj.awesome_inspect
  end
end

require 'mocha/setup'

# Match log information in dealer_logs
class MatchLog
  DEALER_LOG_DIRECTORY = File.expand_path('../dealer_logs', __FILE__)

  attr_reader :results_file_name, :actions_file_name, :player_names, :dealer_log_directory

  def initialize(results_file_name, actions_file_name, player_names)
    @results_file_name = results_file_name
    @actions_file_name = actions_file_name
    @player_names = player_names
  end

  def actions_file_path
    "#{DEALER_LOG_DIRECTORY}/#{@actions_file_name}"
  end

  def results_file_path
    "#{DEALER_LOG_DIRECTORY}/#{@results_file_name}"
  end
end

def match_logs
  [
    MatchLog.new(
      '2p.limit.h1000.r0.log',
      '2p.limit.h1000.r0.actions.log',
      ['p1', 'p2']
    ),
    MatchLog.new(
      '2p.nolimit.h1000.r0.log',
      '2p.nolimit.h1000.r0.actions.log',
      ['p1', 'p2']
    ),
    MatchLog.new(
      '3p.limit.h1000.r0.log',
      '3p.limit.h1000.r0.actions.log',
      ['p1', 'p2', 'p3']
    ),
    MatchLog.new(
      '3p.nolimit.h1000.r0.log',
      '3p.nolimit.h1000.r0.actions.log',
      ['p1', 'p2', 'p3']
    )
  ]
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
acpc_poker_player_proxy-1.6.7 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.6.6 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.6.5 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.6.4 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.6.3 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.6.2 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.6.1 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.6.0 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.5.0 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.4.0 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.3.3 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.3.2 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.3.1 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.3.0 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.2.2 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.2.1 spec/support/spec_helper.rb
acpc_poker_player_proxy-1.2.0 spec/support/spec_helper.rb