tumblr_wrapper 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tumblr_wrapper/blog.rb +1 -1
- data/lib/tumblr_wrapper/version.rb +1 -1
- data/spec/blog_spec.rb +2 -2
- metadata +2 -2
data/lib/tumblr_wrapper/blog.rb
CHANGED
@@ -18,6 +18,6 @@ class TumblrWrapper::Blog < TumblrWrapper::BlogResource
|
|
18
18
|
# http://www.tumblr.com/docs/en/api/v2#posts
|
19
19
|
def posts(parameters={})
|
20
20
|
# for some reason the / is needed for this endpoint... -RH
|
21
|
-
http_get('posts/', parameters)
|
21
|
+
http_get('posts/', {signed: false}, parameters)
|
22
22
|
end
|
23
23
|
end
|
data/spec/blog_spec.rb
CHANGED
@@ -32,13 +32,13 @@ describe TumblrWrapper::Blog do
|
|
32
32
|
|
33
33
|
describe "posts" do
|
34
34
|
it "makes an api request" do
|
35
|
-
blog.should_receive(:http_get).with('posts/', {})
|
35
|
+
blog.should_receive(:http_get).with('posts/', {signed: false}, {})
|
36
36
|
|
37
37
|
blog.posts
|
38
38
|
end
|
39
39
|
|
40
40
|
it "accepts type parameter" do
|
41
|
-
blog.should_receive(:http_get).with('posts/', type: 'text')
|
41
|
+
blog.should_receive(:http_get).with('posts/', {signed: false}, type: 'text')
|
42
42
|
|
43
43
|
blog.posts(type: 'text')
|
44
44
|
end
|