Tag Archives | rails

Test HTTP Basic Authentication in Rails 3 With Capybara

I’m using some HTTP basic authentication in Chirk HR as a simple way of preventing unauthorized access. It’s simple, fast, and easy to change to a more robust authentication later on. Ideal Authentication Test As part of my testing habits, I try to really exercise important methods. Authentication is definitely one of them. Authentication is [...]

Read full story Comments { 1 }

What I’m excited about with ChiliProject 3.0.0

On February 6th ChiliProject 3.0.0 was released. This marks the third major release for ChiliProject and the stabilization of the past 6 months of development. The 3.0 series is my favorite release so far. It finally brings in some features that I’ve been wanting to use for at least 4 years. The full release details [...]

Read full story Comments { 0 }

Run rake tasks in emacs with rinari

I use emacs and rinari when I’m working on ChiliProject. I learned from reading Continuous Testing is that I should be able to run all of my tests with a single key command in an IDE. Unfortunately, ChiliProject’s full test suite takes about 20 minutes to run on my desktop (a whole different problem I’ll be [...]

Read full story Comments { 0 }

Redmine Rate 0.2.1 Released

A bug fix update to my Redmine Rate plugin has just been released. It includes an important bug fix for the caching system. This version requires at least Redmine 1.0.0 and is compatible with Redmine 1.0.x, 1.1.0, 1.1.1, and ChiliProject 1.x. Changes Bug #5793 Cost cache not getting cleared when Time Entry attributes change Download [...]

Read full story Comments { 2 }

Preventing an ActionController::Session::CookieStore::CookieOverflow Error

One of my clients is a heavy user of my Redmine Timesheet plugin and they reported some strange 500 errors to me today. After digging through their logs I saw the plugin was throwing an ActionController::Session::CookieStore::CookieOverflow error. This means that more than 4K of data is being stored into a cookie, which is invalid. For [...]

Read full story Comments { 0 }

Redmine Rate 0.2.0 Released

An update to my Redmine Rate plugin has just been released. It includes several bug fixes and a new caching system. This version requires at least Redmine 1.0.0 and is compatible with Redmine 1.0.x, 1.1.0, 1.1.1, and ChiliProject 1.x. Changes Feature #2433 French translation Feature #2664 Russian localization Feature #3832 rate_users_helper_patch extending InstanceMethods Feature #4289 [...]

Read full story Comments { 0 }

Guest Post on RailsInside.com about Refactoring Rails using Flog

My second guest post to RailsInside.com, How To Score Your Rails App’s Complexity Before Refactoring was just posted. It includes how to use flog to find the complex code in your application.

Read full story Comments { 0 }