Permalink
Browse files

Clean up and rename initial test

  • Loading branch information...
edgenard committed May 13, 2018
1 parent aecb9ac commit 72de92f8adfc52e212bbf965ac616b1c10f50101
Showing with 1 addition and 2 deletions.
  1. +1 −2 refactoring_external_service/youtube_video_list_spec.rb
@@ -26,7 +26,7 @@ def video_stats(ids=:NotGivenToStub)
end
end

def test_video_list_returns_video_list
def test_when_views_unchanged_for_one_month

This comment has been minimized.

@medwards1771

medwards1771 May 15, 2018

Collaborator

Wait a second, what does view count have to do with anything?

video_repo_response = [{'youtubeID' => 'blahblahblah', 'views' => 3, 'monthlyViews' => 3}]
youtube_client_response = {'items' =>
[
@@ -41,7 +41,6 @@ def test_video_list_returns_video_list
video_repo: VideoRepoStub.new(video_repo_response),
video_client: YoutubeVideoClientStub.new(youtube_client_response)
)
video_json = JSON.generate(video_repo_response)

actual = JSON.parse(video_service.video_list)
expected = video_repo_response

0 comments on commit 72de92f

Please sign in to comment.