makandra dev

This describes how to migrate an existing cucumber test suite to Spreewald. Add the gem Include spreewald into your cucumber...

Cucumber_rails' old-school web-steps have been deprecated for a while, urging developers to write high-level step definitions...

The ActionMailer in Rails 2 depends on a buggy version of TMail, which sometimes inserts a blank line into the...

Simply use OpenStruct#to_h to receive an OpenStruct's hash representation. In older Rubies you need OpenStruct#marshal_dump...

Ever wanted autocompletion for paths from paths.rb in Cucumber? This card lets you write your steps like this:

When you get an error like this: Invalid gemspec in [/opt/www/foo-project.makandra.de/shared/bundle/ruby/1.8/specifications/carrierwave-0.6.2.gemspec]: Illformed requirement ["# 1.1.4"] ... the machine's Rubygems needs to...

We frequently use the handy Paperclip Gem to manage file attachments. If you need to move the files from local...

If you have an html_safe string, you won't be able to call gsub with a block and match...

In a nutshell: return statements inside blocks cause a method's return value to change. This is by design (and...

If you get errors from your development WEBrick that contain unicode salad, you are probably requesting the page via SSL...

Tempfiles get deleted automatically With the the ruby Tempfile class you can create temporary files. Those files only stick around...

RubyMine: Set specific Ruby version per project

I was experiencing the following problem: It seems your ruby installation is missing psych (for YAML output). To eliminate this...

For string columns, MySQL indexes the left side of a string. That means an index can speed a like query...

github.com

In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like...

blog.hashrocket.com

Testing with real live production data does come with at least one catch. All those real live users in your...

So you got this error, even though your Gemfile bundles mysql2: !!! Missing the mysql2 gem. Add it to your Gemfile...

Our rspec_candy gem now gives you three matchers: be_same_number_as Tests if the given number is the...

You can use String#demodulize from ActiveSupport: "ActiveRecord::CoreExtensions::String::Inflections".demodulize # => "Inflections" "Inflections".demodulize # => "Inflections"

When you develop a gem and you have a Gemfile in your project directory, you might be surprised that your...

makandra dev

Consul 0.4.0 comes with some new features. Dependencies Consul no longer requires assignable_values, it's optional for when you...

github.com

paper_trail is an excellent gem to track record versions and changes. You almost never want to reimplement something like...

The will_paginate gem will show a default of 30 records per page. If you want to test pagination in...

Sometimes, you may want to open up a second database connection, to a read slave or another database. When doing...