updated stub syntax for new version of rspec-mocks

This commit is contained in:
Tomasz Gieniusz 2014-06-22 14:04:56 +02:00
parent dca3f9f71b
commit 12c920d614

View file

@ -6,7 +6,7 @@ describe GitStats::Generator do
let(:out_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
Dir.should_receive(:exists?).with("#{repo_path}/.git").and_return(false)