Sha256: 356a5caf05daa51276cd34c2097e5ae9e938558d1d5627fd46dd909f566cba00

Contents?: true

Size: 512 Bytes

Versions: 4

Compression:

Stored size: 512 Bytes

Contents

# coding: utf-8
require "spec_helper"

describe Abak::Flow::Branches do
  describe "Interface" do
    subject { described_class }

    it { should respond_to :current_branch }
  end

  describe "#current_branch" do
    let(:branch) { double("Branch") }
    let(:git) { double("Git", current_branch: "my_branch", branches: {"my_branch" => branch}) }

    before { described_class.stub(:git).and_return git }
    subject { described_class.current_branch }

    it { should be_kind_of Abak::Flow::Branch }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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