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

For some years Google Chrome has allowed you to add desktop icon for any web page by going to Tools...

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.

The default Google Analytics might not work as expected with your Unpoly app. This is because your app only has...

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...

makandra dev
browsercookielimits.squawky.net

TL;DR If you want to support most browsers, then don't exceed 50 cookies per domain, and don't...

Spreewald gives you the within meta step that will constrain page inspection to a given scope. Unfortunately, this does not...

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...

Let's say you want to find the element with the text hello in the following DOM tree: hello

TL;DR There are three dimensions you can control when scoping routes: path helpers, URL segments, and controller/view module.

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

Angular's directives have a transclude option, that allows for rendering an element's original content within the directive's...

I got this error when running Rails 2.3 tests for Rails LTS. More stacktrace: NoMethodError: undefined method `cache' for Gem...

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

Note The maintenance mode is enabled on all application server as soon as the file /public/system/maintenance.html is present. Installation

github.com

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