$30 off During Our Annual Pro Sale. View Details »

Upgrading RSpec - RoRoSyd June 14

Upgrading RSpec - RoRoSyd June 14

Quick talk about the upgrade process for RSpec at #RoRoSyd June 2014

Jon Rowe

June 10, 2014
Tweet

More Decks by Jon Rowe

Other Decks in Programming

Transcript

  1. @JONROWE
    UPGRADING
    RSPEC

    View Slide

  2. WHY?
    2.14 no longer maintained

    Easily upgrade process

    New features

    View Slide

  3. New?
    Zero monkey patching mode

    Better Ruby 2 support

    Verifying doubles

    Composable matchers

    and tonnes more…

    View Slide

  4. BUT
    I heard `should` was being deprecated.

    View Slide

  5. View Slide

  6. BUT
    I heard `should` was being deprecated.

    I heard `its` was being deprecated.

    I heard `x` was being deprecated.

    View Slide

  7. BUT
    rspec-its

    rspec-legacy_formatters

    rspec-collection_matchers

    rspec-activemodel-mocks

    rspec-autotest

    View Slide

  8. Upgrade
    2.14

    2.99 (with warnings)

    2.99 (fix warnings)

    3.00 *green*

    View Slide

  9. Transpec
    Written by @yujinakayama

    Converts syntax for you

    Configurable options

    View Slide

  10. Demo Time

    View Slide

  11. Caveats
    3.0.0.beta2 -> 3.0.0

    infer_spec_type_from_file_location!

    View Slide

  12. QUESTIONS?
    @JONROWE

    View Slide

  13. THANKS
    @JONROWE

    View Slide