Enumerable#all? returns true for an empty collection. This totally makes sense but you have to think about it when...

If your Rails application is using Webpack you need to serve assets on the same host as you application runs...

This cucumber step is useful for testing an image (looking at the src of the image). Then(/^I should see...

This is an extension to PostgreSQL vs MySQL: How to UPDATE using a JOIN. UPDATE employees SET department_name = departments.name...

about-payments.com

About-Payments is here to help you to accept payments online and find the best payment service provider for your...

To check which elements an ActiveRecord relation contains use the contain_exactly matcher. describe User do let!(:admin) { create(:user...

This is a small example on how you can check if your Postgres index can be used by a specific...

To find and replace (CTRL + H) empty cells in Libre Office Calc you can use a regular expressions (also called...

Summary: Don't add chromedriver-helper to the Gemfile the executables might break your tests in projects where chromedriver-helper...

You are not using javascript tests The file is served from a public folder (not via controller) Problem description...

Download the dictionary from http://www.winedt.org/dict.html, e.g. http://www.winedt.org/dict/de_neu.zip unzip de_neu.zip mkdir ~/Documents/dic iconv -f UTF-16 -t...

Let's say you have a folder images and want to to move all files in there to a new...

You need to set the :inverse_of option manually for relations that have an association to a polymorphic model. Otherwise...

If another session is accessing your database you are trying to reset or drop you might have seen the following...

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...

There are many approaches out there how you can import data from a legacy application to a new application. Here...

You can not use the hash_including argument matcher with a nested hash: describe 'user' do let(:user) { {id: 1...

Follow the instructions here. PRs at makandra/rubocop-config are welcome. Also check the issue tracker. RubyMine Since version 2017-1 RubyMine...

When using geordi for integration tests you might get the following error when trying to run geordi cucumber:

Rails default config uses the ActiveSupport::Cache::NullStore and disables controller caching for all environments except production: config.action_controller.perform_caching = false...

Webmocks hash_including is similar to RSpec::Mocks::ArgumentMatchers#hash_including. Be aware that hash_including (webmock v3.0.1) doesn't...

Typhoeus has a different way of representing array params in a get request than RestClient. Typhoeus: http://example.com/?foo[0]=1&foo[1]=2&foo[2]=3

chris.beams.io

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