Instant RSpec Test-Driven Development How-to [Instant]


This title is available as an eBook only
Instant RSpec Test-Driven Development How-to [Instant]
eBook: $14.99
Formats: PDF, PacktLib, ePub and Mobi formats
$12.74
save 15%!
Print & eBook also available on:
Learn in an Instant - Short, Fast, Focused
Overview
Table of Contents
Author
Support
Sample Chapters
  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Learn how to use RSpec with Rails
  • Easy to read and grok examples
  • Write idiomatic specifications

Book Details

Language : English
eBook : 68 pages
Release Date : June 2013
ISBN : 1782165223
ISBN 13 : 9781782165224
Author(s) : Charles Feduke
Topics and Technologies : All Books, Application Development, Instant, Open Source
Sorry, the table of contents for this book is not yet available.

Charles Feduke

Charles Feduke began developing software in Perl nearly 2 decades ago. He was trapped in the Microsoft platform for far too long and spends his free time these days writing Ruby, learning Scala, and wishing he was really serious about writing C during the 90s.
Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sorry, there are currently no downloads available for this title.

Frequently bought together

Instant RSpec Test-Driven Development How-to [Instant] +    Application Testing with Capybara =
50% Off
the second eBook
Price for both: $24.50

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • 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

In Detail

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.

Approach

Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. A concise guide that delivers immediate results with practical recipes on learning practical hints.

Who this book is for

This book is aimed at Ruby developers with beginner level expertise who want to use RSpec and test driven development methodology to improve the code they write. Experienced programmers new to Ruby will also benefit from this book which also covers creating testable, idiomatic Ruby code.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software