File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ commit e5be953469f603f113ff065d3619853a1dbe4336
2+ Author: zoltan <ilozkaa@yahoo.com>
3+ Date: Thu Oct 30 15:58:42 2008 +0200
4+
5+ add install script
6+
7+ M README.rdoc
8+ D git_commit_notifier/Rakefile
9+ M post-receive
10+
Original file line number Diff line number Diff line change 9292 end
9393 end
9494
95+ describe :changed_files do
96+ it "should run git log --name-status with given args and strip out the result" do
97+ files = [ "M README.rdoc\n " ,
98+ "D git_commit_notifier/Rakefile\n " ,
99+ "M post-receive" ]
100+ puts FIXTURES_PATH
101+ mock ( GitCommitNotifier ::Git ) . from_shell ( "git log #{ SAMPLE_REV } ..#{ SAMPLE_REV_2 } --name-status" ) { IO . read ( FIXTURES_PATH + 'git_log_name_status' ) }
102+ GitCommitNotifier ::Git . changed_files ( SAMPLE_REV , SAMPLE_REV_2 ) . should == files
103+ end
104+ end
95105end
You can’t perform that action at this time.
0 commit comments