Sha256: 60678ee633d731b7ca0d25108e74434f5d554f894d570760bf277e7b9359d658

Contents?: true

Size: 708 Bytes

Versions: 2

Compression:

Stored size: 708 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'libgss'
require 'tengine/support/yaml_with_erb'

# see https://github.com/tengine/fontana/pull/3
require 'httpclient'
def request_fixture_load(fixture_name)
  c = HTTPClient.new
  c.post("http://localhost:4000/libgss_test/fixture_loadings/#{fixture_name}.json", "_method" => "put")
end


def new_network(url = "http://localhost:4000", player_id = "1000001")
  config = YAML.load_file(File.expand_path("../../fontana_sample/config/app_garden.yml", __FILE__))
  opts = {
    device_type_cd: 1,
    client_version: "2013073101",
    consumer_secret: config["consumer_secret"],
    player_id: player_id
  }
  Libgss::Network.new(url, opts)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
libgss-0.6.1 spec/spec_helper.rb
libgss-0.6.0 spec/spec_helper.rb