Sha256: 394a8d8029030ef7693c06dd7aec497f339ee04284f9eeda000c5698ab4c491a

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 Bytes

Contents

# coding: utf-8
require "spec_helper"

describe Abak::Flow::GithubClient do
  let(:instance) { described_class.clone.instance }

  describe "#connection" do
    let(:options) { {login: "login", password: "password"} }

    before { described_class.any_instance.stub(:connection_options).and_return options }
    after { instance.connection }

    it { Octokit::Client.should_receive(:new).with({login: "login", password: "password"}) }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
abak-flow-1.0.3 spec/abak-flow/github_client_spec.rb
abak-flow-1.0.2 spec/abak-flow/github_client_spec.rb
abak-flow-1.0.1 spec/abak-flow/github_client_spec.rb
abak-flow-1.0.0 spec/abak-flow/github_client_spec.rb