Recent IRB versions include a multi-line autocomplete which may be helpful to novice users but can be distracting.

When using Rails to truncate strings, you may end up with strings that are still too long for their container...

So your Cucumber feature sometimes dies with this exception: Modal Dialog Present (Selenium::WebDriver::Error::UnhandledAlertError) As a seasoned Selenium...

...component is using this class to render and modify some html, it may fastly become boilerplate to define every call of the method. Here callFake comes in handy, because it...

...of any dependent on the received arguments without having to know the exact arguments beforehand: spyOn(Random, 'shuffle').and.callFake((array) => array.reverse()) Now you can just assume any result of your...

makandra dev

This may be awkward to set up, but will work once you're done. Fun facts:

Recently we detected a memory leak in one of our applications. Hunting it down, we found that the memory leak...

Creating records in specs can be so fast that two records created instantly after one another might have the same...

Sidekiq 7 adds a new feature called capsules. Use cases: a chrome queue limited to 1 for e.g. PDF processing...

s keeps saturation unchanged. calc(100 - l) inverts lightness. For example, 0% becomes 100%, and 100% becomes 0%. Example usage .demo { --inverted-color: hsl(from currentColor calc(h...

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

Ncdu is a disk usage analyzer with an ncurses interface. It is designed to find space hogs on a remote...

makandra dev

Authentication is a special part of web applications. On the one hand, it usually is a crucial security mechanism restrict...

If you need to make an HTTPS connection to a host which uses an expired certificate, do not disable certificate...

We recently migrated a Rails application from yarn to npm. We decided to go this step instead of upgrading to...

To set a cookie in your test browser for cucumber tests, you need to know which driver you are using...

makandra dev

Field error steps Spreewald's The...

...field should have an error and The...

...field should have the error...

...steps now...

...a? Capybara::Driver::Selenium Now the selenium driver is located by Capybara::Driver::Selenium. A better-looking approach would be: Capybara.current_driver == :selenium page.response_headers['Content-Disposition'] should be page.response.headers...

There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...

Using Ruby 1.8.7 you will not be able to use the maximum versions Rubygems 1.8.30 and Bundler 1.17.3 with https://...

...existing bash script to work for commits that are referencing Linear IDs. A core benefit of our convention to prefix commits by their corresponding issue ID is that we can...

...easily detect commits that belong to the same issue. You can either do that manually or use the bash script below. It can either be placed in your .bashrc or...

Disclaimer This card is a collection of guides and things to have in mind when upgrading to a specific version...

makandra dev

...lib provides a built-in email regex URI::MailTo::EMAIL_REGEXP. That's the best solution to work with. /\A[a-zA-Z0-9.!\#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA...

Here is how to start your Rails application to accept both HTTP and HTTPS in development. gem install passenger

I recently stumbled over a quirk in the way Ruby handles local variables that I find somewhat dangerous. Consider: