2012-10-23 20:37:42 +02:00
|
|
|
# -*- encoding : utf-8 -*-
|
2012-10-12 18:20:07 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe GitStats::Generator do
|
|
|
|
let(:repo_path) { 'repo_path' }
|
|
|
|
let(:out_path) { 'out_path' }
|
2014-06-22 15:26:03 +02:00
|
|
|
let(:generator) { GitStats::Generator.new(path: repo_path, out_path: out_path) }
|
2012-10-12 18:20:07 +02:00
|
|
|
|
|
|
|
it 'should raise exception if given repo path is not a git repository' do
|
2014-07-06 11:50:11 +02:00
|
|
|
expect { generator }.to raise_error
|
2012-10-12 18:20:07 +02:00
|
|
|
end
|
2012-10-23 20:37:42 +02:00
|
|
|
end
|