how to build a complete, real-world application from scratch with Ruby on Rails step by step.
A lot of Ruby code is "magic". We'll explain the magic and see how it works using the powerful tools Ruby gives us.
Accept subscription and one-time payments with Stripe in your Rails apps
Expert advice on keeping Rails apps organized and fast.
Cheap, easy hosting for Ruby and Rails apps.
Launch your product business way faster with our SaaS template.
A weekly podcast on web development and building products with Ruby, Rails, Javascript, and more.
Build a Ruby on Rails app in 48 hours with us.
Help Junior developers get hired by sharing small projects to build their resume with paid work.
Find your next Ruby on Rails Job.
Our scheduled blog posts adds some complexity to our app. In this lesson, we're going to write some tests to make sure that our code does what we want it to do.
In this video, we will explore how the concepts we looked at in "Flattening Scopes in Ruby" are used in Rails by taking a look at the assert_difference method. We will walk through how the method works while taking note of where the concepts are applied.
Ever wondered how to generate contrasting colors in your Rails app? It's easy using the YIQ calculation and we can test it easily with helper tests.
Continuous Deployment is the automation of deploying any code that gets merged into your main or release branch. We can easily set up GitHub Actions to run CI and CD for us to automate everything.
Appraisal lets us test our code against different versions of dependencies. This is fantastic if you're building Rubygems that must work with multiple versions of Rails or other dependencies
Add code coverage to your app using SimpleCov and RailsBytes. We'll walk through installing simplecov and creating a RailsByte to automate it for us going forward.
Test suites often become brittle over time where small changes end up breaking various tests. One way to avoid that is by avoiding using hardcoded values in your test suite.
Rails provides several helper methods for testing times and dates in your applications. You can now freeze time and time travel like in the movies!
Learn how to test Active Job in your Ruby on Rails application
Learn how to set up GitHub Actions to run Continuous Integration (CI) with Ruby on Rails
System tests allow you to use a browser for testing your Rails app including Javascript
Adding Devise test helpers allows you to quickly login a user for testing controllers in Rails
Learn how to write tests for validations on ActiveRecord objects in Ruby on Rails
How do we go about writing robust tests with rspec for simple_calendar?
Here's how to setup Rspec for an open source project
Join 73,895+ developers who get early access to new tutorials, screencasts, articles, and more.
We care about the protection of your data. Read our Privacy Policy.
Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8
© 2023 GoRails, LLC. All rights reserved.