Testing with Rspec
20
Testing with rspec
-
Upload
copperio -
Category
Technology
-
view
133 -
download
0
description
Basic informations about testing using Rspec
Transcript of Testing with Rspec
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 shortDon't use 'should'
Spork
Guard
Stubbing HTTP requests -webmock
Recording HTTP requests - vcr
Questions?