• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Testing with Rspec
 

Testing with Rspec

on

  • 152 views

 

Statistics

Views

Total Views
152
Views on SlideShare
152
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Testing with Rspec Testing with Rspec Presentation Transcript

    • Testing with rspec
    • Simple test
    • Lets are awesome
    • Subjects are awesome too
    • Use '#' for instance methods and '.' for class methods
    • Use contexts
    • Stubs vs mocks
    • Stubs vs mocks
    • Factory Girl
    • Factory Girl
    • Only one assertion per example
    • Only one assertion per example
    • Shared examples
    • Shared examples
    • Keep description short Don't use 'should'
    • Spork
    • Guard
    • Stubbing HTTP requests webmock
    • Recording HTTP requests - vcr
    • Questions?