Whenever you have to deal with randomness in a jasmine test there are some spy strategies to help you out...
It's possible to implement simple custom RuboCop cops with very little code. They work exactly the same like existing...
Sometimes you want to write a test for a business rule that's based on multiple variables. In your goal...
tl;dr To adjust code templates in RubyMine, navigate to Settings -> Editor -> File and Code Templates. Example You can navigate...
You might know a few examples, where you configure some library via a block. One example is the Rails configuration...
This cards describes an example with a Github Client on how to keep your Rails application more maintainable by extracting...
Fresh Chrome installations now show a "Choose your search engine" popup in Europe. This might make your Cucumber tests fail...
This card is a short summary on different ways of assigning multiple attributes to an instance of a class.
ActiveModel classes have a class method .human_attribute_name. This returns a human-readable form of the attribute: Person.human_attribute...
When you mocked method calls in RSpec, they are mocked until the end of a spec, or until you explicitly...
If you are using the routing-filter gem in your Rails 7.1 app for managing URL segments for locales or...
As we're switching from PT to Linear, I've updated the existing bash script to work for commits that...
Raising errors for required and permitted attributes makes it easier to find errors in your application during development and in...
tl;dr When browsers start to adapt proposals from Open UI, it might not be necessary to use any 3rd...
Debugging performance issues in your Rails app can be a tough challenge. To get more detailed insights consider using the...
There are two ways a logout in SAML can happen: Service Provider (SP) initiated and Identity Provider (IDP) initiated logout...
tl;dr Prefer request specs over end-to-end tests (Capybara) to joyfully test file downloads! Why? Testing file downloads
You can chain multiple Capybara matchers on the page or any element: expect(page) .to have_content('Example Course')
A common cause of non-accessible web pages are elements that were made interactive via JavaScript but cannot be focused...
I recently noticed a new kind of flaky tests on the slow free tier GitHub Action runners: Integration tests were...
Any form fields where users enter numbers should be an . Numeric inputs have several benefits over : On mobile or tablet...
The linked table shows the support lifecycle for Firefox Extended Support Releases (ESR) which we sometimes need to support for...
tl;dr We recommend configuring Selenium's unhandled prompt behavior to "ignore". When running tests in a real browser, we...
A Rails script lives in lib/scripts and is run with bin/rails runner lib/scripts/.... They are a simple tool to perform...