link_thumbnailer 0.0.4 → 0.0.5
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.
- data/CHANGELOG.md +7 -0
- data/README.md +5 -6
- data/lib/link_thumbnailer/object.rb +1 -2
- data/lib/link_thumbnailer/version.rb +1 -1
- data/spec/examples/og_example.html +12 -402
- data/spec/link_thumbnailer_spec.rb +4 -4
- data/spec/spec_helper.rb +0 -1
- metadata +1 -1
@@ -94,10 +94,10 @@ describe LinkThumbnailer do
|
|
94
94
|
context "and valid" do
|
95
95
|
|
96
96
|
before do
|
97
|
-
stub_request(:get, "http://
|
97
|
+
stub_request(:get, "http://foo.com/").to_return(:status => 200, :body => og_example, :headers => {})
|
98
98
|
end
|
99
99
|
|
100
|
-
subject { LinkThumbnailer.generate('http://
|
100
|
+
subject { LinkThumbnailer.generate('http://foo.com') }
|
101
101
|
|
102
102
|
it { should_not be_nil }
|
103
103
|
it { should be_valid }
|
@@ -124,10 +124,10 @@ describe LinkThumbnailer do
|
|
124
124
|
context "and valid" do
|
125
125
|
|
126
126
|
before do
|
127
|
-
stub_request(:get, "http://
|
127
|
+
stub_request(:get, "http://foo.com/").to_return(:status => 200, :body => og_example, :headers => {})
|
128
128
|
end
|
129
129
|
|
130
|
-
subject { LinkThumbnailer.generate('http://
|
130
|
+
subject { LinkThumbnailer.generate('http://foo.com') }
|
131
131
|
|
132
132
|
it { should_not be_nil }
|
133
133
|
it { should be_valid }
|
data/spec/spec_helper.rb
CHANGED