Articles tagged 'ruby'
-
Hands-on With the Cucumber Events API
Cucumber Ruby 2.1 introduces the new Events API — a simple way to find out what’s happening while Cucumber runs your features. Events are read-only and simplify the process of writing formatters, and other output tools.
I’ll illustate how to use the API with a worked example that streams Cucumber...
Read more… -
Your tests want you to change your design
I came across an interesting post by Brandon Hilkert looking at the differences between constructor and setter dependency injection. It’s a great introduction to the differences between the two, and his example illustrates them well. Please go and read it first.
Brandon’s example gets started when...
Read more… -
Using charklock_holmes on Heroku
charlock_holmes
is a useful gem if you have to deal with user supplied data which may come in a variety of text-encodings. Not only does it enable you to detect the encoding of a string, but it also allows you to transcode the string to a different encoding.
Read more…charklock_holmes
useslibicu
to deal with... -
Using `direnv` and `chruby` together
I’ve been using
chruby
to manage my ruby versions for a few months — I like it’s lightweight approach.A combination of bundler’s binstubs, the introduction of rails 4 introducing the
Read more…bin
directory and trying to use the environment to configure my apps has meant I wanted a way to to manage my environment... -
Delegation is not inheritance
On the train home last night I watched the excellent Jim Weirich Play-by-play from PeepCode.
During the screencast Jim develops a library that “protects against unauthorized data model modification by users in less-privileged roles.” The screencast provides a great insight into the way Jim approaches...
Read more…