Testing Ruby with RSpec: The Complete Guide
Testing Ruby with RSpec: The Complete Guide, available at $84.99, has an average rating of 4.58, with 61 lectures, 3 quizzes, based on 1924 reviews, and has 21112 subscribers.
You will learn about Master the syntax and structure of RSpec, the most popular Ruby Gem for testing Utilize test-driven development principles to design and implement clean test specs in Ruby Explore the wide collection of RSpec matchers available to test your code Reduce dependencies in your test suite by mocking objects with class and instance doubles This course is ideal for individuals who are Intermediate Ruby developers interested in upgrading their skill set or Programmers who want to explore the fundamentals of testing and TDD It is particularly useful for Intermediate Ruby developers interested in upgrading their skill set or Programmers who want to explore the fundamentals of testing and TDD.
Enroll now: Testing Ruby with RSpec: The Complete Guide
Summary
Title: Testing Ruby with RSpec: The Complete Guide
Price: $84.99
Average Rating: 4.58
Number of Lectures: 61
Number of Quizzes: 3
Number of Published Lectures: 61
Number of Published Quizzes: 3
Number of Curriculum Items: 74
Number of Published Curriculum Objects: 74
Original Price: $19.99
Quality Status: approved
Status: Live
What You Will Learn
- Master the syntax and structure of RSpec, the most popular Ruby Gem for testing
- Utilize test-driven development principles to design and implement clean test specs in Ruby
- Explore the wide collection of RSpec matchers available to test your code
- Reduce dependencies in your test suite by mocking objects with class and instance doubles
Who Should Attend
- Intermediate Ruby developers interested in upgrading their skill set
- Programmers who want to explore the fundamentals of testing and TDD
Target Audiences
- Intermediate Ruby developers interested in upgrading their skill set
- Programmers who want to explore the fundamentals of testing and TDD
Welcome to Testing Ruby with RSpec: The Complete Guide!
This course offers a comprehensive overview of the RSpec testing library for the Ruby programming language. RSpec is the most popular Ruby Gem of all time, with over 300 million downloads to date.
If you’re new to the topic, testing is the practice of “writing code that confirms that other code works as expected”. Tests control for regressions, which are changes to the code that break the program. Tests give you the confidence to refactor existing code because you know that you will honor the original purpose of the code.
The benefits of testing extend outside of your codebase. In this course, we’ll cover test-driven development (TDD), a methodology in which we write our tests first, before the implementation. Test-driven development often leads to simpler, more decoupled code. Thus, testing can make you a better developer. Tests force you to think critically about the program and its features: the classes, the objects, the methods and more.
Testing Ruby with RSpec begins with the RSpec essentials and proceeds to more complex topics including:
-
Installation
-
Project Initialization
-
Test-Driven Development (TDD)
-
let variables
-
before and after Hooks
-
Subjects
-
Shared Examples
-
Shared Context
-
Built-in Matchers
-
Mocks and Doubles
-
Instance Doubles
-
Class Doubles
As a software engineer and consultant who’s worked with Ruby for 5+ years, I’m excited to introduce you to the awesome RSpec library, its elegant syntax, and all of its fun quirks.
Thanks for checking out the course!
Course Curriculum
Chapter 1: Introduction
Lecture 1: Welcome to RSpec
Lecture 2: About Me
Lecture 3: Unit Tests vs End-to-End (E2E) Tests
Lecture 4: Setup Ruby on macOS Computers
Lecture 5: Setup Ruby on Windows Computers
Lecture 6: Install RSpec
Lecture 7: Install Visual Studio Code for macOS
Lecture 8: Start a Project with rspec –init
Lecture 9: Download Course Files (Optional)
Lecture 10: Test-Driven Development
Lecture 11: The describe Method
Lecture 12: The it Method
Lecture 13: The expect and eq Methods
Lecture 14: Reading Failures
Lecture 15: Making the Specs Pass
Lecture 16: Multiple Examples in Example Group
Lecture 17: Fixing Failing Specs Again
Lecture 18: Reducing Duplication – Before Hooks and Instance Variables
Lecture 19: Reducing Duplication: Helper Methods
Lecture 20: Problems With Mutation
Lecture 21: Reducing Duplication: The let Method
Lecture 22: Custom Error Messages
Lecture 23: The context Method and Nested Describes
Lecture 24: before and after Hooks
Lecture 25: Nested Logic: Hooks
Lecture 26: Nested Logic: Overwriting Let Variables
Chapter 2: Subjects, Shared Examples, and Shared Context
Lecture 1: Implicit Subject
Lecture 2: Explicit Subject
Lecture 3: One-Liner-Example-Syntax
Lecture 4: described_class
Lecture 5: Shared Examples with include_examples
Lecture 6: Shared Context with include_context
Chapter 3: Built-In Matchers
Lecture 1: The not_to Method
Lecture 2: Equality Matchers I (eq and eql)
Lecture 3: Equality Matchers II (equal and be)
Lecture 4: Comparison Matchers
Lecture 5: Predicate Matchers
Lecture 6: all Matcher
Lecture 7: be Matcher (Truthy, Falsy and Nil Values)
Lecture 8: change Matcher
Lecture 9: contain_exactly Matcher
Lecture 10: have_attributes Matcher
Lecture 11: include Matcher
Lecture 12: start_with and end_with Matchers
Lecture 13: raise_error Matcher
Lecture 14: respond_to Matcher
Lecture 15: satisfy Matcher
Lecture 16: not_to Method
Lecture 17: Compound Expectations
Chapter 4: Mocks
Lecture 1: Create a Test Double
Lecture 2: Set up Our Test Movie
Lecture 3: Replacing an Object with a Double
Lecture 4: Receive Counts
Lecture 5: The allow Method
Lecture 6: Matching Arguments
Lecture 7: Instance Doubles
Lecture 8: Class Doubles
Lecture 9: Spies I
Lecture 10: Spies II
Chapter 5: Conclusion
Lecture 1: Conclusion
Lecture 2: Bonus!
Instructors
-
Boris Paskhaver
Software Engineer | Consultant | Author
Rating Distribution
- 1 stars: 4 votes
- 2 stars: 16 votes
- 3 stars: 101 votes
- 4 stars: 631 votes
- 5 stars: 1172 votes
Frequently Asked Questions
How long do I have access to the course materials?
You can view and review the lecture materials indefinitely, like an on-demand channel.
Can I take my courses with me wherever I go?
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don’t have an internet connection, some instructors also let their students download course lectures. That’s up to the instructor though, so make sure you get on their good side!
You may also like
- Top 10 Video Editing Courses to Learn in November 2024
- Top 10 Music Production Courses to Learn in November 2024
- Top 10 Animation Courses to Learn in November 2024
- Top 10 Digital Illustration Courses to Learn in November 2024
- Top 10 Renewable Energy Courses to Learn in November 2024
- Top 10 Sustainable Living Courses to Learn in November 2024
- Top 10 Ethical AI Courses to Learn in November 2024
- Top 10 Cybersecurity Fundamentals Courses to Learn in November 2024
- Top 10 Smart Home Technology Courses to Learn in November 2024
- Top 10 Holistic Health Courses to Learn in November 2024
- Top 10 Nutrition And Diet Planning Courses to Learn in November 2024
- Top 10 Yoga Instruction Courses to Learn in November 2024
- Top 10 Stress Management Courses to Learn in November 2024
- Top 10 Mindfulness Meditation Courses to Learn in November 2024
- Top 10 Life Coaching Courses to Learn in November 2024
- Top 10 Career Development Courses to Learn in November 2024
- Top 10 Relationship Building Courses to Learn in November 2024
- Top 10 Parenting Skills Courses to Learn in November 2024
- Top 10 Home Improvement Courses to Learn in November 2024
- Top 10 Gardening Courses to Learn in November 2024