remote_partial 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,7 +32,7 @@ module RemotePartial
32
32
 
33
33
  def test_html
34
34
  resource_manager = ResourceManager.new(@url)
35
- assert_equal content.to_s, resource_manager.html
35
+ assert_equal raw_content, resource_manager.html
36
36
  end
37
37
 
38
38
  def test_html_with_limit
@@ -66,8 +66,12 @@ module RemotePartial
66
66
  end
67
67
  end
68
68
 
69
+ def raw_content
70
+ Net::HTTP.get(URI(@url))
71
+ end
72
+
69
73
  def content
70
- Nokogiri::HTML(Net::HTTP.get(URI(@url)))
74
+ Nokogiri::HTML(raw_content)
71
75
  end
72
76
 
73
77
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remote_partial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: