snatch 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/snatch/clean/html.rb +1 -1
- data/snatch.gemspec +1 -1
- data/spec/snatch/clean/html_spec.rb +5 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.12
|
data/lib/snatch/clean/html.rb
CHANGED
data/snatch.gemspec
CHANGED
@@ -84,6 +84,11 @@ describe Snatch::Clean::HTML do
|
|
84
84
|
node.should have_href('/folder/index.html')
|
85
85
|
end
|
86
86
|
|
87
|
+
it 'should not append index.html to a login link' do
|
88
|
+
node = fix_node(:append_index_html, '<a href="/login"></a>')
|
89
|
+
node.should have_href('/login')
|
90
|
+
end
|
91
|
+
|
87
92
|
it 'with an extension' do
|
88
93
|
node = fix_node(:append_index_html, '<a href="folder/file.txt"></a>"')
|
89
94
|
node.should have_href('folder/file.txt')
|