View
Posted over 1 year 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 over 1 year 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...

Posted over 3 years ago by Dominik Schöler. unixmantra.com

xargs is a powerful bash tool that can take input from $STDIN and pass it to a given command. I.e...

Posted over 1 year ago by Emanuel De.

Geordi uses parallel_tests if available for running the test suite. To debug an application it is very unhandy to...

Posted over 1 year ago by Arne Hartherz.

When you def methods in RSpec tests, you can use super to call a method definition that was created in...

Posted over 3 years ago by Emanuel De.

TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...

Posted over 1 year ago by Natalie Krehan.

Raising JavaScript errors in Cucumber With selenium JavaScript errors do not cause any failture in your cucumber scenarios. To archive...

Posted over 3 years ago by Henning Koch.

There is no CSS selector for matching elements that contains a given string ¹. Luckily, Capybara offers the :text option to...

Posted over 1 year ago by Emanuel De.

Cucumber will save a file tmp/parallel_cucumber_failures.log will the filenames and line number of the failed scenarios after a full test...

Posted over 1 year ago by Dominik Schöler.

At makandra, we've built a few gems over the years. Some of these are quite popular: spreewald (475k downloads...

Posted over 5 years ago by Dominik Schöler.

Cucumber allows for prose in features and scenarios. Example: Feature: Cancel account There are several ways to cancel a user...

Posted almost 2 years ago by Natalie Krehan.

If you want to fill in textareas with multiple lines of text (containing line breaks) you can use Cucumber's...

Posted almost 9 years ago by Ulrich Berkmueller.

These steps are now part of Spreewald. Here are some useful examples how to use the attached Cucumber Timecop steps...

Posted about 8 years ago by Henning Koch.

The attached patch lets you find a record by a string or number in any column: User.find_by_anything('carla...

Posted about 7 years ago by Henning Koch.

Calling bundle update GEMNAME will update a lot more gems than you think. E.g. when you do this...

Posted almost 2 years ago by Dominik Schöler. content.pivotal.io

A matcher is a function that returns an object with a compare key. Usually it is registered with beforeEach...

Posted about 2 years ago by Henning Koch.

When you find yourself constantly ignoring a RubyMine warning, you can simple disable that warning and de-clutter your editor...

Posted about 2 years ago by Henning Koch.

You need to update a lof gems. Make sure you don't have any version constraints in your...

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