giphy 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/giphy/search.rb +2 -2
- data/lib/giphy/version.rb +1 -1
- data/spec/giphy/search_spec.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 985230cab97f32c88f2951f8028b6464c442f0a8
|
4
|
+
data.tar.gz: 9cc2ebd22ba089407fc8a888117cc6cabd20bbfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1f6f86619faa66ca59d606f368203d37903e96dcfa91018bc09b47da0cbaa56bc3fac1eba9d5ac1cf0b76e9136ef00fb29416455519f51655e5399f0a278907
|
7
|
+
data.tar.gz: f4cab1159e1a27b8cc2502228ca09d8f951d4698d3e8136ba2e45539505022450b18bcd2330a097e273bb577f7db4526549814917f4ae7953eb5a349ee361c8b
|
data/lib/giphy/search.rb
CHANGED
data/lib/giphy/version.rb
CHANGED
data/spec/giphy/search_spec.rb
CHANGED
@@ -62,9 +62,10 @@ describe Giphy::Search do
|
|
62
62
|
|
63
63
|
describe "#favorites" do
|
64
64
|
it "returns a batch of FavoriteGifs from the client result" do
|
65
|
-
|
65
|
+
username = 'absurdnoise'
|
66
|
+
client.stub(:favorites).with(username, options).and_return(client_result)
|
66
67
|
Giphy::FavoriteGif.stub(:build_batch_from).with(client_result).and_return(response)
|
67
|
-
expect(subject.favorites).to eq response
|
68
|
+
expect(subject.favorites(username, options)).to eq response
|
68
69
|
end
|
69
70
|
end
|
70
71
|
|