Skip to content

Commit

Permalink
#251 removed video
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 5, 2018
1 parent 9b34893 commit 6f9de0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions _plugins/youtube.rb
Expand Up @@ -34,6 +34,7 @@ def render(context)
uri = URI.parse("https://www.googleapis.com/youtube/v3/videos?id=#{@id}&part=snippet,statistics&key=#{key}")
json = JSON.parse(Net::HTTP.get(uri))
raise json['error']['message'] if json['error']
raise "YouTube video #{@id} not found" if json['items'].empty?
item = json['items'][0]
snippet = item['snippet']
puts "YouTube video #{@id} found: #{snippet['title']}"
Expand Down
2 changes: 0 additions & 2 deletions _posts/2017/mar/2017-03-24-tdd-that-works.md
Expand Up @@ -61,8 +61,6 @@ not calculator examples. It's also very _inefficient_, because tests by definiti
are much more rigid than the code they validate—creating them first will
cause many re-do cycles until the design is stabilized.

{% youtube R_2AvKDHAWI %}

I've personally [written](https://github.com/yegor256) almost 300,000 lines of code in
Java, Ruby, PHP, and JavaScript over the last four years, and I have never
done TDD by the book: "write a test, make it run, make it right." Ever.
Expand Down

0 comments on commit 6f9de0c

Please sign in to comment.