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