Sha256: 85ba1a07cab7d1c60d1b347d57654fdbe4cb660682ff5557f7491a4e0b7d2039

Contents?: true

Size: 649 Bytes

Versions: 6

Compression:

Stored size: 649 Bytes

Contents

require File.expand_path("#{File.dirname(__FILE__)}/../lib/megam/gogs")

require 'rubygems'
gem 'minitest' # ensure we are using the gem version
require 'minitest/autorun'
require 'time'

SANDBOX_HOST_OPTIONS = {
  :host => 'localhost',
  :port => 6001
}


def megam(options)
  options = SANDBOX_HOST_OPTIONS.merge(options)
  mg=Megam::Gogs.new(options)
end

def megams(options={})
  s_options = SANDBOX_HOST_OPTIONS.merge(options)
  #options = s_options.merge(options)
  mg=Megam::Gogs.new(s_options)
end

def sandbox_json
  {:json =>
    '{"name":"Simpson", "displayName":"test", "mail":"homersimpson@springfield.com", "password":"bart"}'
  }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
megam_gogs-0.8.0 test/test_helper.rb
megam_gogs-0.7.0 test/test_helper.rb
megam_gogs-0.6.0 test/test_helper.rb
megam_gogs-0.5.0 test/test_helper.rb
megam_gogs-0.4.0 test/test_helper.rb
megam_gogs-0.3.0 test/test_helper.rb