Lewis Youl

Testing the versions table with PaperTrail and RSpec

The PaperTrail gem provides version tracking for your ActiveRecord models but the creation of version entries is skipped in the test environment. This post investigates how to turn on and test versioning for specific tests.

26 Oct 2021-
RSpec Ruby on Rails

Automate your RSpec test suite with Guard

RSpec is a wonderful tool for testing regular ruby and ruby on rails applications. However as an application and its test suite grows larger it can become cumbersome to run an entire suite or even an enire file when you make a change. Even switching between your editor and terminal to execute your tests can become tiresome if you are regularly running your specs or practicing Test Driven Development. Guard allows you to automate this process.

09 Apr 2021-
RSpec Ruby Ruby on Rails