summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/git/diff_spec.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-27 23:50:17 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-27 23:50:17 +0300
commit4f2d2c90f7c32a9113ccce440411ec80374ee385 (patch)
tree312803a008da343b9e773324d8411557a271e918 /spec/lib/gitlab/git/diff_spec.rb
parentdf96c079ef3e358ea221ce4c43163d478b79a5e0 (diff)
downloadgitlab-ce-4f2d2c90f7c32a9113ccce440411ec80374ee385.tar.gz
Move Gitlab::Git out of gitlab core
Diffstat (limited to 'spec/lib/gitlab/git/diff_spec.rb')
-rw-r--r--spec/lib/gitlab/git/diff_spec.rb34
1 files changed, 0 insertions, 34 deletions
diff --git a/spec/lib/gitlab/git/diff_spec.rb b/spec/lib/gitlab/git/diff_spec.rb
deleted file mode 100644
index 5191b1190a6..00000000000
--- a/spec/lib/gitlab/git/diff_spec.rb
+++ /dev/null
@@ -1,34 +0,0 @@
-require "spec_helper"
-
-describe Gitlab::Git::Diff do
- before do
- @raw_diff_hash = {
- diff: 'Hello world',
- new_path: 'temp.rb',
- old_path: 'test.rb',
- a_mode: '100644',
- b_mode: '100644',
- new_file: false,
- renamed_file: true,
- deleted_file: false,
- }
-
- @grit_diff = double('Grit::Diff', @raw_diff_hash)
- end
-
- context 'init from grit' do
- before do
- @diff = Gitlab::Git::Diff.new(@raw_diff_hash)
- end
-
- it { @diff.to_hash.should == @raw_diff_hash }
- end
-
- context 'init from hash' do
- before do
- @diff = Gitlab::Git::Diff.new(@grit_diff)
- end
-
- it { @diff.to_hash.should == @raw_diff_hash }
- end
-end