View
Posted 11 months ago by Tobias Kraze.

If you struggle with a /boot partition that is too small for updates, and you are too intimidated by the...

Posted 11 months ago by Arne Hartherz.

When doing some meta-programming magic and you want to do something for all attributes of a class, you may...

Posted 12 months ago by Emanuel De.

This is a short overview of things that are required to upgrade a project from the Asset Pipeline to Webpacker...

Posted about 6 years ago by Dominik Schöler. github.com

Put the attached file into features/support/. Example usage: When /^I open the task named "(.+?)"$/ do |task_name| task = page.all('.task...

Posted over 7 years ago by Tobias Kraze.

Starting with Rails 3.2, there is a nicer way to display custom error pages (i.e. "page not found") that does...

Posted about 3 years ago by Judith Roth.

Sometimes huge refactorings or refactoring of core concepts of your application are necessary for being able to meet new requirements...

Posted about 5 years ago by Henning Koch.

Javascript objects can have getter and setter functions that are called when a property is read from or written to...

Posted almost 7 years ago by Dominik Schöler. aaronlasseigne.com

All Rubyists should be familiar with the common definitions for include and extend. You include a module to add instance...

Posted over 5 years ago by Arne Hartherz.

Capybara will fail to find tags that are missing an href attribute. This will probably happen to you every now...

Posted about 1 year ago by Henning Koch.

If your app does not need to support IE11, you can use most ES6 features without a build step. Just...

Posted about 6 years ago by Arne Hartherz. relishapp.com

Sometimes you have a test expectation but actually want a better error message in case of a failure. Here is...

Posted about 8 years ago by Ulrich Berkmueller.

In order to save the original value of a constant, set the new value and restore the old value after...

Posted over 1 year ago by Dominik Schöler.

Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...

Posted over 1 year ago by Emanuel De.

Cucumber factory supports polymorphic associations out of the box. Just keep in mind that you need to use named associations...

Posted over 1 year ago by Dominik Schöler.

Cucumber has an output format that prints step definitions only. You can use this to find unused ones: Temporarily add...

Posted over 1 year ago by Tobias Kraze.

When upgrading Rails versions – especially major versions – you will run into a lot of unique issues, depending on the exact...

Posted over 1 year ago by Arne Hartherz.

Accessing pseudo elements via JavaScript or jQuery is often painful/impossible. However, accessing their styles is fairly simple. Using getComputedStyle

Posted over 7 years ago by Henning Koch.

TLDR: In tests you need to clean out the database before each example. Use :transaction where possible. Use :deletion for...

This website uses cookies to improve usability and analyze traffic.
Accept or learn more