Slideshow transcript
Slide 1: “S is for Spec”:Test Driven Development w/ RSpec KAKUTANI Shintaro; Eiwa System Management,Inc.; Nihon Ruby-no-kai
Slide 2: ✓ ✓ ✓ ✓ http://kakutani.com
Slide 6: RubyKaigi2008 http://jp.rubyist.net/RubyKaigi2008/
Slide 9: Red, Green, Refactoring TEST CLUB
Slide 16: Red, Green, Refactoring TEST CLUB
Slide 18: ✓ ✓ ✓ ✓
Slide 20: ✓ ✓ ✓ ✓ ✓ ✓ ✓
Slide 24: Clean code that works, in Ron Jeffries’ pithy phrase, is the goal of Test-Driven Development(TDD).
Slide 25: “Clean code that works”
Slide 27: “The translation of a feeling into a test is a common theme of TDD.”
Slide 29: ✓ ✓ ✓ ✓ ✓ ✓
Slide 36: http://www.biwa.ne.jp/~mmura/SoftwareDevelopment/WhatIsSoftwareDesignJ.html
Slide 37: ✓ ✓
Slide 43: ✓ ✓ ✓ ✓ ✓ ✓
Slide 44: ✓ ✓ ✓ ✓ ✓ ✓
Slide 52: ✓ ✓ ✓ ✓ ✓ ✓
Slide 53: Refactoring GREEN E D R
Slide 56: ✓ ✓ ✓ ✓ ✓ ✓
Slide 60: RED GREEN Refactoring
Slide 62: The Art of Agile Development
Slide 63: Think RED GREEN Refactoring
Slide 66: ✓ ✓ ✓ ✓ ✓ ✓ ✓
Slide 67: ✓ ✓ ✓ ✓
Slide 69: ✓ ✓
Slide 71: http://jp.rubyist.net/magazine/?0021-Rspec
Slide 73: describe Class, " " do before(:each) do # end it " " do # end end
Slide 74: describe Array, "with some entries" do before(:each) do @array = %w(A B C) end it "should not be nil" do @array.should_not be_nil end it "should last element is 'C'" do @array.last.should == 'C' end end
Slide 75: spec -c array_spec.rb
Slide 76: ✓ @array.last.should == 'C' # @array.last 'C' ✓ @array.should_not be_nil # @array.nil? false
Slide 77: ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
Slide 79: http://jp.rubyist.net/magazine/?0021-Rspec
Slide 82: The Bowling Game Kata by Robert C.Martin(Uncle Bob) Bowling Game Kata Object Mentor, Inc. www.objectmentor.com blog.objectmentor.com fitnesse.org www.junit.org Copyright 2005 by Object Mentor, Inc All copies must retain this page unchanged. http://butunclebob.com/ArticleS.UncleBob.TheBowlingGameKata
Slide 83: http://codekata.pragprog.com/
Slide 84: ✓ ✓ ✓ ✓ http://codekata.pragprog.com/
Slide 85: ✓ ✓ ✓ ✓ ✓
Slide 86: ✓ ✓
Slide 87: 1 4 4 5 6 5 0 1 7 6 2 6 5 14 29 49 60 61 77 97 117 133 1,4,4,5,6,4,5,5, 10, 0,1,7,3,6,4,10,2,8,6
Slide 88: ✓ ✓ ✓ ✓ ✓ ✓
Slide 90: ✓ ✓ ✓ ✓
Slide 98: Tyler Durden says... use Rspec.



Add a comment on Slide 1
If you have a SlideShare account, login to comment; else you can comment as a guest- Favorites & Groups
Showing 1-50 of 5 (more)