Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Crispy in a Nutshell 
山本悠滋 
2014-09-21 Ruby Hiroba
はじめまして! 
山本悠滋(@igrep) 25歳♂ 
Sansanという会社でRailsを触ってます。 
Yokohama.rb の RubyKaja 2014に選ばれました。あり 
がとう! 
Haskellの勉強会をツキイチでやってます!
今日話すこと 
crispyというgemを作ったので紹介させてください! 
And Star github.com/igrep/crispy
What's Crispy 
New test double library for Ruby. 
競合: rspec-mocks, rr, etc. 
あらゆるオブジェクトをspyできます。
Crispy is: 
あらゆるオブジェクトに対するspyです。
Let's Compare! 
open crispy/pull/12
おなじみのメソッドが使えるよ! 
received_messagesというメソッドに、呼び出したメソッドと 
引数を表すオブジェクトのArrayが! 
expect(x).to receive(:m).with(...) の with(...)...
おなじみのメソッドが使えるよ! 
だから! 
おなじみのEnumerableのメソッドが使えるよ! 
学習コスト爆安!!! 
もっと自由にmessage expectationができるよ!
おなじみのEnumerableのメソッド 
が使えるよ! 
続きはREADMEで!
まとめ 
crispyは多分史上初のあらゆるObjectに使えるTest Spy 
どこでexpect(...).to receive()を呼ぶか悩む時代は終 
わりました! 
みんな大好きEnumerableのメソッドを使って、柔軟かつ 
簡...
Upcoming SlideShare
Loading in …5
×

Crispy in a nutshell - Test Spy for ANY Object in Ruby

975 views

Published on

Introduce https://github.com/igrep/crispy - a brand-new test double library in Ruby
It's perhaps the Ruby world's first test double library providing features to spy ANY objects.

Published in: Engineering
  • accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes.........ACCESS WEBSITE Over for All Ebooks ..... (Unlimited) ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • If you want to download or read this book, Copy link or url below in the New tab ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • (Unlimited)....ACCESS WEBSITE Over for All Ebooks ................ accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M }
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes.........ACCESS WEBSITE Over for All Ebooks ..... (Unlimited) ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THI5 BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

Crispy in a nutshell - Test Spy for ANY Object in Ruby

  1. 1. Crispy in a Nutshell 山本悠滋 2014-09-21 Ruby Hiroba
  2. 2. はじめまして! 山本悠滋(@igrep) 25歳♂ Sansanという会社でRailsを触ってます。 Yokohama.rb の RubyKaja 2014に選ばれました。あり がとう! Haskellの勉強会をツキイチでやってます!
  3. 3. 今日話すこと crispyというgemを作ったので紹介させてください! And Star github.com/igrep/crispy
  4. 4. What's Crispy New test double library for Ruby. 競合: rspec-mocks, rr, etc. あらゆるオブジェクトをspyできます。
  5. 5. Crispy is: あらゆるオブジェクトに対するspyです。
  6. 6. Let's Compare! open crispy/pull/12
  7. 7. おなじみのメソッドが使えるよ! received_messagesというメソッドに、呼び出したメソッドと 引数を表すオブジェクトのArrayが! expect(x).to receive(:m).with(...) の with(...)に 相当する機能。
  8. 8. おなじみのメソッドが使えるよ! だから! おなじみのEnumerableのメソッドが使えるよ! 学習コスト爆安!!! もっと自由にmessage expectationができるよ!
  9. 9. おなじみのEnumerableのメソッド が使えるよ! 続きはREADMEで!
  10. 10. まとめ crispyは多分史上初のあらゆるObjectに使えるTest Spy どこでexpect(...).to receive()を呼ぶか悩む時代は終 わりました! みんな大好きEnumerableのメソッドを使って、柔軟かつ 簡単にspyが受け取ったメッセージを調べられます。 Star github.com/igrep/crispy

×