mirror of
https://github.com/tomgi/git_stats.git
synced 2024-10-01 05:01:29 +02:00
updated stub syntax for new version of rspec-mocks
This commit is contained in:
parent
dca3f9f71b
commit
12c920d614
@ -6,7 +6,7 @@ describe GitStats::Generator do
|
|||||||
let(:out_path) { 'out_path' }
|
let(:out_path) { 'out_path' }
|
||||||
let(:generator) { GitStats::Generator.new(repo_path, out_path) }
|
let(:generator) { GitStats::Generator.new(repo_path, out_path) }
|
||||||
|
|
||||||
before { Dir.stub!(:exists? => true) }
|
before { Dir.stub(:exists? => true) }
|
||||||
|
|
||||||
it 'should raise exception if given repo path is not a git repository' do
|
it 'should raise exception if given repo path is not a git repository' do
|
||||||
Dir.should_receive(:exists?).with("#{repo_path}/.git").and_return(false)
|
Dir.should_receive(:exists?).with("#{repo_path}/.git").and_return(false)
|
||||||
|
Loading…
Reference in New Issue
Block a user