Sha256: c4a0ead054937509d23e77cad1de6eec1ac808882d409c99373553f2a081f479

Contents?: true

Size: 408 Bytes

Versions: 3

Compression:

Stored size: 408 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'helper'

describe Octokit::Client::GitHub do

  before do
    @client = Octokit::Client.new
  end

  describe ".github_meta" do
    it "returns meta information about github" do
      stub_get("/meta").
        to_return(json_response("github_meta.json"))
      github_meta = @client.github_meta
      expect(github_meta.git.first).to eq("127.0.0.1/32")
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
octokit-1.25.0 spec/octokit/client/github_spec.rb
octokit-1.24.0 spec/octokit/client/github_spec.rb
octokit-1.23.0 spec/octokit/client/github_spec.rb