Category Archives: Rails

Introducing Solano Labs 30/30: 30% Faster Builds or 30% Lower Bill

Solano Labs is proud to announce our most ambitious campaign to date. Our 30/30 promotion offers you 30% faster builds or a 30% lower CI bill. No catch. It truly is that simple. Our technology is the most scalable in the industry and we are happy to issue an open invitation for anyone to try […]

1 Comment

Green Is My Favorite Color

As a relative newbie to Solano Labs specifically and parallelized testing in general, I’d like to share the solutions to common on-boarding issues when moving jobs to Solano CI and getting green test passes: Where did my dependency go? My train of thought debugging a job recently: I can see the file being required by […]

Leave a comment

Speeding Up our Test Suite: From 2.5 hours to 20 mins with Solano Labs

by Drew Blas, Software Engineer, At Chargify we rely heavily on automated testing to ensure that we always maintain a working app. With so many customers and a heavily utilized API, it’s critical that we maintain complete backwards compatibility and ensure we don’t impact existing customer operations. That’s why our test suite consists of […]

Leave a comment

A Look Back at 2012 Software Screw Ups!

The New Year is already off to a great start here at Solano Labs with new features and product upgrades getting ready to roll out.  With the start of the New Year we also decided to take a look back at the year that was and ask as a company “What have we learned?” and […]

1 Comment

ActiveRecord 3.1.0 – 3.1.2 and Postgres

It is a new year and we’re excited about a number of new features we’ll be announcing over the course of the next few weeks.  In the meantime, those of you using ActiveRecord 3.1.0 through 3.1.2 together with the Postgres database adapter may want to consider updating to ActiveRecord 3.1.3.  We’ve seen a number of […]

Leave a comment

Psych isn’t Syck

Ruby 1.9.2 introduced a new YAML parser called psych, which in theory is better than syck, the existing parser.  Syck is the parser in 1.8.7 and REE and still the default in 1.9.2 but it is unmaintained.  Ideally, we’d be able to just switch over to psych with 1.9.2, but there are number of outstanding issues […]


Rails Time Comparisons: Devil, Details, etc.

Have you ever seen an error in your code where two timestamps that are the same fail a comparison test? [sourcecode] 1) SomeController#update sets updated_at to current time Failure/Error: something.reload.updated_at.should == expected: 2011-08-04 15:09:26 +0000, got: Thu, 04 Aug 2011 15:09:26 UTC +00:00 (using ==) Diff: @@ -1,2 +1,2 @@ -2011-08-04 15:09:26 +0000 +Thu, […]


Test your JavaScript!

Tddium now supports tests for JavaScript-rich web applications with a number of tools: Capybara using both the default :selenium and :webkit Javascript drivers JS unit and functional testing using jasmine-headless-webkit Cucumber or RSpec tests running in our environment automatically have access to a private Selenium Webdriver and/or Webkit servers with Firefox and Chrome browsers.  Tddium will […]

Leave a comment

Broken Migrations and Missing schema.rb

ActiveRecord Migrations are slick.  They allow easy access to a powerful database with minimal knowledge of SQL, and they promise an easy way to reconstruct a DB schema.  Unfortunately, they’re fragile in the face of large teams and code that has changed significantly. Migrations and schema.rb There are two ways migrations can reconstruct a schema into a […]

Leave a comment

Testing Rails data migrations using RSpec

I’d like to share an example (Gist) of testing a staged ActiveRecord data migration using RSpec and Factory Girl. The example here splits Author information out of an existing Post model. The trouble with a data migration that  moves information is that its models are defined for the “new” schema, but has to operate on […]

Leave a comment