=> #<Capybara::Node::Element tag="div" path=... If you rely on this behavior in Capybara 3, affected features will fail. The gem no longer normalizes whitespace when finding...
...visible css ".haystack" with text "Hi! Try to match me." Re-enabling Cabyara 2 behavior in Capybara 3 After digging in the documentation, you might figure out that you can...
Although you can access many symbols using the AltGr key you may be missing some, like the en-dash (–) or...
I had to modify the time for an application that I launch through Docker. Here is an approach that worked...
Use rules to include or exclude jobs in pipelines. Rules are evaluated in order until the first match. When a...
You can run bundle install in parallel. This might be helpful for development, where you often install many new gems...
No out of the box I18n support for translating the database values But: Better support for the enumerated database type and therefore better suited for performance optimizations
You can not use the hash_including argument matcher with a nested hash: describe 'user' do let(:user) { {id: 1...
Attaching files to a field that is handled by Carrierwave uploaders (or maybe any other attachment solution for Rails) in...
...methods usually don't print background colors. In most cases this is the desired behavior, because you don't want to spend tons of ink printing the background of a...
When your Cucumber feature needs to browse the page HTML, and you are not sure how to express your query...
Modern CSS offers the field-sizing property to allow elements to automatically adjust size (width and/or height) to fit their...
When using Sidekiq in your application, you must write thread-safe code. This wiki page also lists gems that are...
...file_inside' do let(:path) { '/opt/invoices/' } it 'should send a requested file that lives beneath the given directory' do subject.should_receive(:send_file).with('/opt/invoices/123.pdf', {}) subject.send :send_file_inside, path...
...the window's resize event, that might call your event listener many times. A better way is to subscribe to changes of the MediaQueryList object that is returned by matchMedia...
I frequently find myself needing a combination of group_by, count and sort for quick statistics. Here's a method...
...system's environment specifies. This is usually good enough. To test any timezone-dependent behavior in Chrome, you can change the time zone using the Chrome DevTools Protocol. Example
If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...
Capybara and most assistive technology will fail to find tags that are missing an href attribute. This will probably happen...
...DateTime.strptime is not what you want You may eventually encounter DateTime.strptime. It's a "better" Time.parse where you can actually define the date format to parse, e.g. >> DateTime.strptime...
...If you use Rails' time_zone_select, you will be juggling zone names like "Berlin" which are actually unsupported. Unsupported zone identifiers are silently discarded and you'll end up...
This card shows you how to center a float horizontally in CSS. Also: find out what techniques are available for...
Some browsers render PNG images with color profiles and other shenanigans, some don't. The cleanest way to have consistent...
Git has the concept of hooks: bash scripts that are invoked at certain points in the Git lifecycle. One handy...
...It's much easier to detect the current Rails environment instead. You might be better of checking against the name of the current Rails environment. To do this, store the...
...lot of logic and callbacks for a particular form screen, but then the model becomes a pain in tests, where all those callbacks just get in the way. Or we...
...have different forms for the same model but they need to behave very differently (e.g. admin user form vs. public sign up form). There are many approaches that promise help...