Home | Amazing | Today | Tags | Publishers | Years | Account | Search 
Instant RSpec Test - Driven Development How-to

Buy

Learn RSpec and redefine your approach towards software development

Overview

  • 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

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.

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

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 written 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.

(HTML tags aren't allowed.)

Pro .NET Best Practices
Pro .NET Best Practices

Pro .NET Best Practices is a practical reference to the best practices that you can apply to your .NET projects today. You will learn standards, techniques, and conventions that are sharply focused, realistic and helpful for achieving results, steering clear of unproven, idealistic, and impractical...

Beginning Spring Boot 2: Applications and Microservices with the Spring Framework
Beginning Spring Boot 2: Applications and Microservices with the Spring Framework

Learn Spring Boot and how to build Java-based enterprise, web, and microservice applications with it. In this book, you'll see how to work with relational and NoSQL databases, build your first microservice, enterprise, or web application, and enhance that application with REST APIs. You'll also learn how to build reactive web...

Configuring Cisco Unified Communications Manager and Unity Connection: A Step-by-Step Guide (2nd Edition)
Configuring Cisco Unified Communications Manager and Unity Connection: A Step-by-Step Guide (2nd Edition)

On March 10, 1876, Alexander Graham Bell made the first successful telephone call. As with many things, the test was purely accidental. Graham spilled acid on his leg, and Watson, his assistant, heard his call for help through the telephone. So, what has changed over the last 129 years? It would be easier to discuss what hasn’t...


New Era Value Investing: A Disciplined Approach to Buying Value and Growth Stocks
New Era Value Investing: A Disciplined Approach to Buying Value and Growth Stocks
A unique guide that combines the best of traditional value theory with an innovative approach to assessing value in low or non-dividend paying stocks

In the 1990s, America's focus on productivity and innovation led to huge gains in technology, communication, and healthcare stocks, and contributed to the transformation of the...

Oxidative Stress in Aquatic Ecosystems
Oxidative Stress in Aquatic Ecosystems

Reactive oxygen species (ROS) are  increasingly appreciated as down-stream effectors of cellular damage and dysfunction under natural and anthropogenic stress scenarios in aquatic systems. This comprehensive volume describes oxidative stress phenomena in different climatic zones and groups of organisms, taking into account specific...

Microsoft SharePoint 2010: Customizing My Site: Harness the Power of Social Computing in Microsoft SharePoint! (Business Skills)
Microsoft SharePoint 2010: Customizing My Site: Harness the Power of Social Computing in Microsoft SharePoint! (Business Skills)

Customize your implementation of My Site in Microsoft® SharePoint® 2010—and capture the enthusiasm for social networking in your organization. With this concise, practical guide, SharePoint expert Michael Doyle shows you how to modify key My Site features to meet specific business needs. You’ll learn how to apply...

©2021 LearnIT (support@pdfchm.net) - Privacy Policy