When you're nesting setTimeout(f, 0) calls, your browser will silently increase the delay to 5 milliseconds after the...

When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...

makandra dev
phrogz.net

...The and tags both come with some non-default behavior that you know from other tags.

When testing Ruby code that prints something to the terminal, you can test that output. Since RSpec 3.0 there is...

willmore.eu

The linked site hosts a simple test. It shows two images with narrow vertical/horizontal lines. The more they resemble each...

kb.wisc.edu

When receiving a new SSL-Certificate for an existing SSL-key it should be checked that they match cryptographically.

relishapp.com

When you find yourself in the situation that you would like to define a custom matcher in your specs, but...

To delay your entire Jasmine test suite until the DOM is ready, add the following: beforeAll(function(done) { $(done); });

github.com

fake_stripe spins up a local server that acts like Stripe’s and also serves a fake version of Stripe.js...

Expecting a primitive value as an argument to a method invocation is easy: expect(object).to receive(:foo).with('arg1...

OAuth requires a set of params to be carried along requests, among which a nonce. Some libraries pass these along...

TL;DR There are three dimensions you can control when scoping routes: scope module: 'module', path: 'path', as: 'as' do...

Our preferred way of testing ActiveRecord is to simply create/update/destroy the record and then check if the expected behavior has...

Validations should be covered by a model's spec. This card shows how to test an individual validation. This is...

makandra dev

Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...

github.com

Using Scenic, you can bring the power of SQL views to your Rails application without having to switch your schema...

github.com

A comprehensive script to convert test suites from RSpec 2 to RSpec 3. This converts more than should/expect syntax.

makandra dev
github.com

Remove some old binaries (commands still exist in geordi) and mark others as deprecated Rewrite deploy command to support...

Regular expressions in Javascript are represented by a RegExp object. There also is a regex literal as in many other...

github.com

You know that Devise offers RSpec test helpers for controller specs. However, in request specs, they will not work.

puppet.com

The puppet server caches custom functions. If you edit an existing function (e.g. while you’re developing it), you’ll...

There are different ways to define a lambda or proc in ruby. [*] with lambda keyword test = lambda do |arg|

keycdn.com

Table of contents of the linked article: What are Web Fonts? Advantages of Web Fonts Disadvantages of Web Fonts

mail-tester.com

You can use mail-tester.com to check your application's e-mails for issues that might cause e-mails to be...