require 'spec_helper'

describe 'Output' do
  context "When there are dependencies" do
    let(:lines){ `cd spec/fixtures/fake_git_repo && ../../../bin/logr 1ec977324701ad31e4b837c67df4afc8d2d3ce67..9fc19dae2aa27ba61db4a33e6dea8d58c59ed150 && cd -`.split("\n") }

    it 'outputs multiple project banners' do
      lines.select{|l| l == "="*80}.size.should == 2
    end
  end
end

require 'spec_helper'

describe 'Output' do
  context "When there are dependencies" do
    let(:lines){ `cd spec/fixtures/fake_git_repo && ../../../bin/logr 1ec977324701ad31e4b837c67df4afc8d2d3ce67..9fc19dae2aa27ba61db4a33e6dea8d58c59ed150 && cd -`.split("\n") }

    it 'outputs multiple project banners' do
      lines.select{|l| l == "="*80}.size.should == 2
    end

    it 'outputs most recent change of dependency' do
      lines[8].should include('4225aa8')
      lines[8].should include('2013-10-22')
      lines[8].should include("Remove commander dependency, as it's not used")
      lines[8].should include('Gareth Visagie')
    end
  end
end

Add tests for dependency output
Add tests for dependency output
