About This Course
Learn how to use RSpec, the Ruby testing framework that can help developers be more productive, write better code, and reduce bugs during development. Kevin Skoglund explains the basic syntax of RSpec and then dives straight into writing and running test examples. It shows how to use a variety of matchers to test for expected conditions, provides techniques for testing efficiently, and demonstrates how test doubles can stand in for objects and methods. It also explains the additional RSpec features available for Ruby on Rails, and walks through a step-by-step example of test-driven development.
Rails 5 with real-time features is finally here! Ruby on Rails 5 – Behavior Driven Development (BDD), RSpec and Capybara provides a thorough introduction to BDD and using it to build web applications using the popular Ruby on Rails framework.
RSpec is a behavior-driven development (BDD) framework for the Ruby programming language, inspired by JBehave. It contains its own mocking framework that is fully integrated into the framework based upon JMock. The framework can be considered a domain-specific language (DSL) and resembles a natural language specification.
Rails 5 – the latest and greatest version of Rails along with its real-time features applied to chat and comments displayed thoroughly in this course!
– Behavior Driven Development is the focus of this course; the principles of automated testing can easily transcend frameworks!
– RSpec and Capybara experience for automated testing is necessary as a Rails developer, this is covered thoroughly in this course!
– Emulating browser based user behavior to complete a business process from beginning to end, covered thoroughly in this course!
– This is a big resume booster. Knowledge and usage of RSpec and automated testing is very important to potential employers and most of the Rails community use this!
– Complete coverage in terms of features. ALL features are built on the basis of automated testing specs, not just selective features.
– Build two complex and functional web apps including the featured workout social media web app.
At the end of this course, you will be able to:
- Install and configure RSpec
- Write and run examples
- Define expectations using matchers
- Use helper methods, before/after hooks, and shared examples
- Create test doubles using mocks and stubs
- Test Ruby on Rails with RSpec