Instant RSpec Test-Driven Development How-to

Learn RSpec and redefine your approach towards software development

Instant RSpec Test-Driven Development How-to

Charles Feduke

Learn RSpec and redefine your approach towards software development
Packt Subscription
$5.00
$9.99/m after first month
eBook
$5.00
RRP $14.99
Save 66%
What do I get with a Packt subscription?
  • Exclusive monthly discount - no contract
  • Unlimited access to entire Packt library of 6500+ eBooks and Videos
  • 120 new titles added every month, on new and emerging tech
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
$5.00
$5.00
$9.99/m after first month
RRP $14.99
Subscription
eBook
Subscribe Now

Frequently bought together


Instant RSpec Test-Driven Development How-to Book Cover
Instant RSpec Test-Driven Development How-to
$ 14.99
$ 5.00
RSpec Essentials Book Cover
RSpec Essentials
$ 31.99
$ 5.00
Buy 2 for $10.00
Save $36.98
Add to Cart

Book Details

ISBN 139781782165224
Paperback68 pages

Book Description

RSpec is a behaviour driven development framework for Ruby programmers. It comes integrated with its own mocking framework based on Jmock. This book introduces you to RSpec helping you to write idiomatic specifications for Ruby code in a test first approach.

Instant RSpec Test-Driven Development How-to is filled with examples of actual code accompanied by explanations and covers general Ruby, Rails, and RSpec use cases plus a few of the more advanced topics. RSpec Test Driven Development is written on the premise that you will need no experience with RSpec and limited experience with Ruby, Rails, and TDD fundamentals. You’ll begin by writing a very simple Ruby library in true TDD fashion and and use the red, green, refactor tools to migrate this library into a Rails application.

Instant RSpec Test-Driven Development How-to will teach you the actual steps performed in writing an idiomatic specification. You will be able to write a test for the code you wish you had, and learn to write only the minimum code necessary to pass a test, and write more specifications to drive out the production functionality your application will need. Through the course of the book, you will convert a Ruby program into a new Rails application, test Rails specifics such as file uploads, cookies, and model validation and even learn how to use Capybara. RSpec Test Driven Development will help you build confidence in the code they you write and spend less time dealing with bugs and maintenance headaches.

Table of Contents

What You Will Learn

  • RSpec fundamentals
  • How to use RSpec and Rails together
  • Modify your behavior to create tests first and run your specs with every code change
  • How to work with the rspec command line tool
  • Using mocks and stubs to decouple tests from the database
  • How to refactor code to improve readability

Authors

Table of Contents

Book Details

ISBN 139781782165224
Paperback68 pages
Read More

Read More Reviews

Recommended for You

RSpec Essentials Book Cover
RSpec Essentials
$ 31.99
$ 5.00
Application Testing with Capybara Book Cover
Application Testing with Capybara
$ 19.99
$ 5.00
Cucumber Cookbook Book Cover
Cucumber Cookbook
$ 31.99
$ 5.00
Learning Sinatra Book Cover
Learning Sinatra
$ 23.99
$ 5.00
Learning Sinatra Book Cover
Learning Sinatra
$ 23.99
$ 5.00
Bootstrap Essentials Book Cover
Bootstrap Essentials
$ 23.99
$ 5.00