My last year with RSpec, a workshop with Andrew Sullivan Cant

In my last year of RubyOnRails work I have learn more about RSpec and significantly changed how I write my specs.

I will present a review of some new syntax and some of the patterns I have been using. And show some examples where I think it has improved my specs readability.

Some examples of the new syntax are:
- let, describe, and context
- implicit subjects
- shared_example
- shared_context (optionally in their own modules)

To put this into practice we will also try the "String Calculator Code Kata", http://osherove.com/tdd-kata-1/ using TDD and RSpec.

Please bring a laptop (with Ruby installed) if you can, and we'll match up people pair program through the kata.

The Rspec install is as easy as 'sudo gem install rspec', you can pre-install or we'll just do it during the presentation.

Join or login to comment.

  • Declan W.

    Great overview of RSpec from Andrew. I have gone through a similar journey over the past year and knowing this stuff would have saved me hours and hours of time!

    March 27, 2013

  • Donnie M.

    Thank you for everyone who attended! Also, a special thanks to Andrew for giving a great talk!

    To those who couldn't make it, we hope to see you next time!

    March 26, 2013

  • Andrew Sullivan C.

    For tonight's presentation you can download the slides, and some sample for for the first few steps of the Kata from my github repo at:

    https://github.com/acant/rspec-presentation-2013

    The presentation is just HTML and Javascript so any browser should let you follow along.

    March 26, 2013

11 went

Our Sponsors

  • Code School

    First month with Code School is $9, instead of the standard $25.

  • O'Reilly Media

    Sponsorship, review copies of titles they publish

  • Boltmade

    Boltmade provides space, food & drinks for our meetups.

People in this
Meetup are also in:

Imagine having a community behind you

Get started Learn more
Rafaël

We just grab a coffee and speak French. Some people have been coming every week for months... it creates a kind of warmth to the group.

Rafaël, started French Conversation Group

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy