Category Archives: Uncategorized

Handling JSON POST bodies in your Ruby/Rack Application

Want to post largish JSON objects to your web service? Merely think that using POST parameters as a transport is a little ugly? If your web service is implemented as a Rack application, take a look at this handy Rack middleware: All it takes to use it with Sinatra is a simple use statement […]

Leave a comment

Ruby Debuggers for 1.9.x

I don’t often use a debugger with Ruby, but when I do, I use…ruby-debug19? The ruby-debug19 gem has been the most common debugger for ruby 1.9.x for some time. Sadly, it is no longer maintained. What to do? We’re moving to the aptly named debugger gem and we recommend you do, too. As it happens, […]

Leave a comment

3,000,000 Tests!

Tddium just ran it’s 3,000,000th test.  That’s a million a month, and we’re just getting started. Stay tuned for news of great new features and developments from Tddium and Solano Labs!

Leave a comment

Down the Rabbit Hole with UTF-8, YAML, and RSpec

I hope this post saves someone from a similar afternoon to the one I just spent, puzzling over what appeared to be an impossible test result. TL;DR: string.encode!(string.encoding, …) does nothing, even if string isn’t valid for string.encoding. To really force an encoding, hop through BINARY.  Regex matches on unsanitized binary data are common cases […]

1 Comment

Tddium Security Practices and Policies

Github’s recent announcement (and impressively prompt fix) of a vulnerability in their public key management system has brought questions of security and the vulnerability of frameworks like Rails to the forefront of the discussion among technologists. Tddium has been committed to security from day one.  We, like Github, ask our users to trust us with their important IP, […]

Leave a comment

Cucumber and Resque

Most web sites end up needing some sort of background job queue to process requests that don’t belong on the critical path.  In the Ruby on Rails world the two most common are Delayed Job and Resque.  Writing tests for either is pretty straightforward with cucumber if you have your relational database (delayed job) or redis […]

Leave a comment

Our Integration Tests

Testing “outside-in” is a model that’s coming into favor, in the form of BDD and tools and Cucumber.   High-level tests are easy to understand and decoupled enough from the underlying implementation that they survive significant architectural changes.   We’ve described some our API testing strategy using Cucumber in an earlier post.  Today, I’d like […]

Leave a comment

Ansible: Render ANSI escapes to HTML Fast!

Hot on the heels of Antilles, we’ve released another gem into the wild:  Ansible. Ansible is an ANSI-escape to HTML conversion tool that’s fast enough to use on large input. Particularly, it’s meant to be significantly faster than the ansi-sys gem for large input text. The ansi-sys HTML renderer uses a O(n^2) algorithm to process stateful ANSI […]

Leave a comment