Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

LABS
Reconfiguring Rails Conventions – Highlighting Missing Strong Parameters

Let's say we were creating an API that allows us to create 'foo's. Foos, as far as we know, will have a first name and a title. We can write a request spec to help us drive out our endpoint's behavior

LABS
Options for Admin Engines in Component-based Rails Applications

In my recent RailsConf talk I said that I would help out with questions regarding component-based Rails applications (#cbra). A few days ago I got one such question via twitter: How to make a unified admin tool for independent engines?. Here is the gist:

Zac: @shageman starting an app from scratch using #cbra and wondering how to handle a shared admin tool w/ regards to non-shared dependencies

Stephan: @zachallett Are you wanting to build one admin for multiple independent parts?

Read more »

LABS
Rspec with Elasticsearch::Ruby and Elasticsearch::Model

We recently started using Elasticsearch::Ruby on our project and wanted to add some rspec integration tests. The documentation skips over rspec integration but by adapting their sample tests: # Gemfile group :test do gem 'elasticsearch-extensions' end # spec_helper.rb # Add after other requires.

Read more »

LABS
Unit-Testing AngularJS in a Rails app using the Jasmine gem

Testing AngularJS applications is easy with Jasmine. If you look at the AngularJS docs, many of the code examples show a corresponding Jasmine spec.

One important part of AngularJS’s testing support is the included angular-mocks.js file. This file contains a module called NgMock that provides a set of fake services for things such as HTTP requests, in order to make them easier to unit test.

Read more »

LABS
Move Over Timecop…Hello ActiveSupport::Testing::TimeHelpers

Imagine this, you are testing a Rails application with RSpec and you have the need to freeze or travel through time in your specs. Your old trusted friend Timecop has served you well in the past but you’ve heard about this new kid in Rails 4.1, ActiveSupport::Testing::TimeHelpers.

Read more »

LABS
Rails is omakase; so is AngularJS

Opinions

DHH, one of the creators of Rails wrote a seminal blog post about Rails’ configurability and design to permit choice, while still presenting opinions on application structure. This sits well with my general sense of what’s right. I like things that don’t force me to make arbitrary decisions early on in development.

Read more »

LABS
Combating false positive failures in CI

code { color: inherit; background-color: inherit; padding: inherit; } h3 { font-weight: bold; } Scope and the problem

If you experience a CI build turning red due to an intermittent failure, such as in a Capybara test, this post is for you.

Read more »

LABS
Using database views for performance wins in Rails

Sometimes you come across a problem where your go-to approaches start to fail you. I came across one of these examples recently where a Rails app required a report to be built which consumed data from almost every model within the application.

Read more »

LABS
How to use Analytics.js to fix your analytics code and achieve metrics nirvana

There are so many great analytics tools out there that it’s often hard to know what to use. What’s more, each one comes with its own flavor of JavaScript API that’s slightly different from all the rest, meaning each new one you choose to add, even if you’re not sure it’s right for you, is a ton of work to implement.

Read more »

LABS
Have you tested your tests lately?

Summary: If you are using the rspec_api_documentation gem to test and document your API, you can use this code to test that you have a spec for each of your routes. Check out the gist here: http://gist.github.com/kayline/8868438

If you’re building an app with a public API, accurate and clear documentation is a blessing for both you and your third-party developers.

Read more »