RSpec Essentials

Develop testable, modular, and maintainable Ruby software for the real world using RSpec

RSpec Essentials

Mani Tadayon

Develop testable, modular, and maintainable Ruby software for the real world using RSpec
eBook
$10.00
RRP $31.99
Save 68%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
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 Mapt 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 Mapt 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 Mapt reader
$10.00
$39.99
RRP $31.99
RRP $39.99
eBook
Print + eBook

Frequently bought together


RSpec Essentials Book Cover
RSpec Essentials
$ 31.99
$ 10.00
Comprehensive Ruby Programming Book Cover
Comprehensive Ruby Programming
$ 31.99
$ 10.00
Buy 2 for $20.00
Save $43.98
Add to Cart

Book Details

ISBN 139781784395902
Paperback222 pages

Book Description

This book will teach you how to use RSpec to write high-value tests for real-world code. We start with the key concepts of the unit and testability, followed by hands-on exploration of key features. From the beginning, we learn how to integrate tests into the overall development process to help create high-quality code, avoiding the dangers of testing for its own sake.

We build up sample applications and their corresponding tests step by step, from simple beginnings to more sophisticated versions that include databases and external web services. We devote three chapters to web applications with rich JavaScript user interfaces, building one from the ground up using behavior-driven development (BDD) and test-driven development (TDD).

The code examples are detailed enough to be realistic while simple enough to be easily understood. Testing concepts, development methodologies, and engineering tradeoffs are discussed in detail as they arise. This approach is designed to foster the reader’s ability to make well-informed decisions on their own.

Table of Contents

What You Will Learn

  • Identify a unit of software for the purposes of testing
  • Manage test states with hooks, fixtures, and mocks
  • Handle external web services in tests using various techniques
  • Configure RSpec flexibly and cleanly using support code and environment variables
  • Interact with rich web apps in tests using Capybara
  • Build the right feature with behavior-driven development
  • Customize matchers and failure messages
  • Verify correct development and production environments

Authors

Table of Contents

Book Details

ISBN 139781784395902
Paperback222 pages
Read More

Read More Reviews

These popular $10 titles might interest you

Comprehensive Ruby Programming Book Cover
Comprehensive Ruby Programming
$ 31.99
$ 10.00
Getting Started with Terraform - Second Edition Book Cover
Getting Started with Terraform - Second Edition
$ 23.99
$ 10.00
Mastering Sass Book Cover
Mastering Sass
$ 35.99
$ 10.00
Implementing DevOps with Ansible 2 Book Cover
Implementing DevOps with Ansible 2
$ 35.99
$ 10.00
Cucumber Cookbook Book Cover
Cucumber Cookbook
$ 31.99
$ 10.00
React 16 Essentials - Second Edition Book Cover
React 16 Essentials - Second Edition
$ 23.99
$ 10.00