relishapp.com

In most projects I know, Cucumber test suite speed is not an issue. Of course, running 350 features takes its...

georgemauer.net

If your application exports CSV, be advised that Excel and other spreadsheet applications treat certain cells (those starting with =, +, - or...

Checking if a JavaScript value is of a given type can be very confusing: There are two operators typeof and...

RSpec allows you to mark a single Example/ExampleGroup so that only this will be run. This is very useful when...

If you already selected an element and want to get its parent, you can call find(:xpath, '..') on it.

makandra dev

An end-to-end test (E2E test) is a script that remote-controls a web browser with tools like Selenium...

When your public-facing application has a longer downtime for server maintenance or long migrations, it's nice to setup...

Browsers support different types of redirects. Be very careful with these status codes: 301 Moved Permanently 308 Permanent Redirect

When you want to group rails models of a logical context, namespaces are your friend. However, if you have a...

RSpec allows defining methods inside describe/context blocks which will only exist inside them. However, classes (or any constants, for that...

When localizing model attributes via I18n you may run into errors like this: I18n::InvalidPluralizationData: translation data {...

...} can not be...

docs.ruby-lang.org

Use return to return from a method. return accepts a value that will be the return value of the...

before(:all) runs the block once before all of the examples. before(:each) runs the block once before each...

You can use local copies of gems in your Gemfile like this: gem 'spreewald', path: '~/gems/spreewald' As soon as you...

I often see the use of || to set a default value for a variable that might be nil, null or...

Nowadays it is fairly easy to intercept and modify mails globally before they are sent. All you have to do...

To easily opt out of notifications for a large number of Github repositories, go to https://github.com/watching.

Rails supports time zones, but there are several pitfalls. Most importantly because Time.now and Time.current are completely different things and...

stackoverflow.com

This card will show you how to use git rebase --onto without confusion. Use case: You've got two feature...

chris.beams.io

Separate subject from body with a blank line Limit the subject line to 50 characters (max. 72), include...

Database connections are not thread-safe. That's why ActiveRecord uses a separate database connection for each thread.

rspec.info

In modern default RSpec configurations, your tests are usually run in random order. This helps to detect "flickering" tests that...

makandra dev

This card compares patterns to store trees in a relation database like MySQL or PostgreSQL. Implementation examples are for the...

github.com

The parallel-gem is quite easy to use and can speed up rendering time if you want to render the...