trackman 0.6.7 → 0.6.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/trackman/urls/html_parser.rb +1 -1
- data/lib/trackman/version.rb +1 -1
- data/spec/html_parser_spec.rb +20 -0
- metadata +3 -1
data/lib/trackman/version.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
describe Trackman::Urls::HtmlParser do
|
3
|
+
before :all do
|
4
|
+
@parser = Object.new
|
5
|
+
@parser.extend Trackman::Urls::HtmlParser
|
6
|
+
end
|
7
|
+
|
8
|
+
it "contains unique paths" do
|
9
|
+
html = "
|
10
|
+
<html>
|
11
|
+
<head></head>
|
12
|
+
<body>
|
13
|
+
<img src='/assets/trackman70x70.png' alt='Trackman logo' />
|
14
|
+
<img src='/assets/trackman70x70.png' alt='Trackman logo' />
|
15
|
+
</body>
|
16
|
+
</html>"
|
17
|
+
|
18
|
+
@parser.parse(html).should == ['/assets/trackman70x70.png']
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trackman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -454,6 +454,7 @@ files:
|
|
454
454
|
- spec/helpers/app_creator.rb
|
455
455
|
- spec/helpers/fakable_pathman_tester.rb
|
456
456
|
- spec/html_asset_spec.rb
|
457
|
+
- spec/html_parser_spec.rb
|
457
458
|
- spec/paths/rails32_resolver_spec.rb
|
458
459
|
- spec/paths/resolver_spec.rb
|
459
460
|
- spec/rails2311/first_push_spec.rb
|
@@ -771,6 +772,7 @@ test_files:
|
|
771
772
|
- spec/helpers/app_creator.rb
|
772
773
|
- spec/helpers/fakable_pathman_tester.rb
|
773
774
|
- spec/html_asset_spec.rb
|
775
|
+
- spec/html_parser_spec.rb
|
774
776
|
- spec/paths/rails32_resolver_spec.rb
|
775
777
|
- spec/paths/resolver_spec.rb
|
776
778
|
- spec/rails2311/first_push_spec.rb
|