There are many approaches out there how you can import data from a legacy application to a new application. Here...
Native promises have no methods to inspect their state. You can use the promiseState function below to check whether a...
You can not use the hash_including argument matcher with a nested hash: describe 'user' do let(:user) { {id: 1...
Capybara clears cookies before each scenario, but not other client-side data stores. If your app is using localStorage or...
When using geordi for integration tests you might get the following error when trying to run geordi cucumber:
Webpack is the future. We're using it in our latest Rails applications. For tests, we want to compile assets...
I needed to make sure that an element is visible and not overshadowed by an element that has a higher...
Rails default config uses the ActiveSupport::Cache::NullStore and disables controller caching for all environments except production: config.action_controller.perform_caching = false...
Shoulda Matchers don't provide canditional validations (validations with if: option). Here is how to write tests for the condition...
When you have a multi-server setup, you'll be adding a new server from time to time. Before doing...
These tools help you in checking websites globally: DNS Checker This tool allows for global DNS propagation checking. GeoScreenshot
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
Middleman is a static page generator that brings many of the goodies that Rails developers are used to.
In modern default RSpec configurations, your tests are usually run in random order. This helps to detect "flickering" tests that...
The parallel-gem is quite easy to use and can speed up rendering time if you want to render the...
When filling out forms in Selenium tests, Chrome shows the (usual) bubble, asking to store those credentials. While the bubble...
For the initial setup or changes in the sentry reporting it might be useful to enabled reporting of sentry in...
ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...
Note: The behaviour of Spreewald's within step is as described below for version < 1.9.0; For Spreewald >= 1.9.0 it is...
This is a visualization of the files that will be generated by some useful rails generators. Invoke a generator from...
Website that offers lots of different kinds of HTTPS configurations, bad or good or complicated. They also offer a dashboard...
Occasionally, you have to talk to APIs via HTTPS that use a custom certificate or a misconfigured certificate chain (like...
Using VCR to record communication with remote APIs is a great way to stub requests in tests. However, you may...