View
Posted about 5 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 6 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 1 month ago by Daniel Straßner.

When you have a powerful machine with 16 cores, you might run into an error like Refusing to use Redis...

Posted over 2 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 over 4 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 about 6 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 4 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 3 months 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 5 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 7 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 4 months 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 5 months 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 5 months 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 5 months 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 5 months 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 6 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...

Posted 6 months ago by Henning Koch. github.com

Setting array columns When using PostgreSQL array columns, you can set an array attribute to a value with square brackets...

Posted 6 months ago by Michael Leimstädtner. docs.ruby-lang.org

Percent Notation We already know that that we can create strings using the percent notation: %{<foo="bar's ton">} is...

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