If you want to make a screenshot of a website that works well in print or on a high-DPI...
When flagging a spec that will be implemented later as pending, include a failing spec body or RSpec 3 will...
When a Rails controller action should handle both HTML and JSON responses, do not use request.xhr? to decide that. Use...
I recently had fun with replacing a custom video plattform ("mycustomtv") in one of our applications. I learned a lot...
Understanding your type of cronjob Some cronjobs must only run on a single server. E.g. when you run nightly batch...
When installing gems, a lot of time is spent building locally installed documentation that you probably never use.
When you have a pending Cucumber step (or feature) that also uses an existing VCR cassette, your pending test may...
Katapult 0.3.0 brings Rails 5 and Ruby 2.5 support with a new design, plus a ton of smaller features, fixes...
Enumerable#all? returns true for an empty collection. This totally makes sense but you have to think about it when...
Say you want to move a git repository from one remote (perhaps Github) to another (perhaps Gitlab).
This cucumber step is useful for testing an image (looking at the src of the image). Then(/^I should see...
About-Payments is here to help you to accept payments online and find the best payment service provider for your...
TL;DR Use user.update!(remove_avatar: true) to delete attachments outside of forms. This will have the same behavior as...
The issue: You are using stub_const to change a constant value for your test. stub_const "SomeClass::CONST", 'test...
This error is raised because your old database does not have a configured environment yet, which Rails 5 enforces.
Rails applications and ruby gems should have a README that gives the reader a quick overview of the project. Its...
You should avoid using application models in your migrations. But how else could you create records in a migration?
wrap the text with a span use line-height for the spacing between lines ("margin")
To check if a method has been called in Jasmine, you first need to spy on it: let spy = spyOn...
When you print (or print preview) and elements are cut off (e.g. after 1st page, or "randomly") you should check...
Situation: You want to write a spec for a function inside an Angular service. This function at some point makes...
If you try to listen to events on elements that are nested inside a , Firefox will stop event propagation once...
By default, browsers will not wrap text at syllable boundaries. Text is wrapped at word boundaries only. This card explains...
PostgreSQL's Common Table Expressions (CTEs) can be used to extract sub-queries from bulky SQL statements into a temporary...