Skip to content

Commit

Permalink
spec for user_likes method
Browse files Browse the repository at this point in the history
  • Loading branch information
stakes committed Jul 27, 2014
1 parent 923e927 commit 742560a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions spec/redvine_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,26 @@

end

describe '.user_likes' do

it 'should respond to a user_likes method' do
expect(client).to respond_to(:user_likes)
end

it 'should throw an error without a user id' do
expect { client.user_likes() }.to raise_error(ArgumentError)
end

it 'should return a set of results with VideoUrls given a user id with some likes' do
VCR.use_cassette('redvine', :record => :new_episodes) do
vines = client.user_likes('1104962313704103936')
expect(vines.count).to be > 0
expect(vines.first.videoUrl).to be_an_instance_of(String)
end
end

end

describe '.user_timeline' do

it 'should respond to a user_timeline method' do
Expand Down

0 comments on commit 742560a

Please sign in to comment.