Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit 72de92f

Browse files
committed
Clean up and rename initial test
1 parent aecb9ac commit 72de92f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

refactoring_external_service/youtube_video_list_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def video_stats(ids=:NotGivenToStub)
2626
end
2727
end
2828

29-
def test_video_list_returns_video_list
29+
def test_when_views_unchanged_for_one_month
3030
video_repo_response = [{'youtubeID' => 'blahblahblah', 'views' => 3, 'monthlyViews' => 3}]
3131
youtube_client_response = {'items' =>
3232
[
@@ -41,7 +41,6 @@ def test_video_list_returns_video_list
4141
video_repo: VideoRepoStub.new(video_repo_response),
4242
video_client: YoutubeVideoClientStub.new(youtube_client_response)
4343
)
44-
video_json = JSON.generate(video_repo_response)
4544

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

0 commit comments

Comments
 (0)