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: scope module: 'module', path: 'url_prefix', as: 'path...

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.

makandra dev
github.com

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

Until recently, you could open a new tab via window.open when using execute_script in Selenium tests. It no longer...

CSS4 comes with :has. E.g. h1:has(b) would select all tags that contain a tag. This is implemented in...

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.

Ruby has the class Proc which encapsulates a "block of code". There are 2 "flavors" of Procs: Those with "block...

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

Sometimes you just want to have a small web server that serves files to test something. Serve the current directory...

When you're developing a gem, never list the same dependency as both runtime and development dependency in your .gemspec...

If you get an error like: subprocess installed post-removal script returned error exit status 78 when installing/removing/updating a package...

You want to test your 1GE or 10GE internet uplink? We needed to ensure we have full 10GE to the...

makandra dev

Starting with Ruby 1.9, most #each methods can be called without a block, and will return an enumerator. This is...