Defect #31507 » 31507.patch
| test/unit/lib/redmine/unified_diff_test.rb | ||
|---|---|---|
|
raw = <<~DIFF
|
||
|
--- test.orig.txt Wed Feb 15 16:10:39 2012
|
||
|
+++ test.new.txt Wed Feb 15 16:11:25 2012
|
||
|
@@ -1,5 +1,5 @@
|
||
|
@@ -1,4 +1,4 @@
|
||
|
Semicolons were mysteriously appearing in code diffs in the repository
|
||
|
|
||
|
```
|
||
|
-void DoSomething(std::auto_ptr<MyClass> myObj)
|
||
|
+void DoSomething(const MyClass& myObj)
|
||
|
|
||
|
```
|
||
|
DIFF
|
||
|
diff = Redmine::UnifiedDiff.new(raw, :type => 'sbs')
|
||
|
assert_equal 1, diff.size
|
||