irwi 0.0.0 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/irwi.gemspec +1 -1
- data/lib/irwi/comparators/base.rb +1 -1
- data/spec/comparators/diff_lcs_spec.rb +8 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.1.0
|
data/irwi.gemspec
CHANGED
@@ -34,4 +34,12 @@ describe Irwi::Comparators::DiffLcs do
|
|
34
34
|
@c.render_changes('AdDA',nil).should == '<span class="removed">AdDA</span>'
|
35
35
|
end
|
36
36
|
|
37
|
+
specify "should change \\n to <br />" do
|
38
|
+
@c.render_changes("AdDA\nhhh",'').should == '<span class="removed">AdDA<br />hhh</span>'
|
39
|
+
end
|
40
|
+
|
41
|
+
specify "should change \\r\\n to <br />" do
|
42
|
+
@c.render_changes("AdDA\r\nhhh",'').should == '<span class="removed">AdDA<br />hhh</span>'
|
43
|
+
end
|
44
|
+
|
37
45
|
end
|