makandra dev

Never use raise_error without specifying the Error you expect. expect { do_a_lot_of_complicated_stuff }.to raise_error...

You can use the step definition below to say this: Then the "Last name" field should have an error

blog.bitcrowd.net

When cucumber encounters a failing step in a @javascript feature, the selenium browser window instantly closes. Sometimes you do not...

The technique described in this card has an important caveat: The result of GROUP_CONCAT is truncated to the maximum...

You can use heredoc to avoid endlessly long lines of code that nobody can read. Heredoc strings preserve linebreaks and...

awsdocs.s3.amazonaws.com

There is a new card about how to do this with the new AWS Command Line Interface

If Rails or Rake are complaining about a missing gem that is listed in your Gemfile.lock and the listed version...

agileweboperations.com

features are pre-sold without any option to negotiate what’s important and what may be left out, you inevitably...

makandra dev

This will reduce the filesize of foo and bar to 0 bytes: truncate -s0 foo bar If the files do...

stackoverflow.com

Most likely you run rake and your code is causing an exception which is not the one shown in your...

When installing your first formula, Homebrew may complain about not being able to access certain directories. The easiest solution to...

When your Solr seems to be started properly (a process is running with the correct data directory) but never responds...

When you put a Rake task into lib/tasks, but running it fails with... Don't know how to build task...

makandra dev

cURL makes a web request and shows you the response body. You can redirect the response body to /dev/null just...

Consider you have a website vhost listening to www.example.com, redirecting all incoming requests that do not talk about the configured...

mislav.uniqpath.com

Random list of useful git commands for advanced users. I found some of them useful.

If your application raises an error like ... Couldn't connect to the Solr server at http://127.0.0.1:8983/solr. 500 "Lock...

You can use fold: fold -sw 60 You can now paste your texts. fold will echo them back, word-wrapped...

When you drag a file from a Nautilus window into a terminal window, the file's path will be pasted...

The state_machine gem comes with a rake task that lets you generate PNG graphs from any model using state...

Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version...

You can create a Regexp object from existing Regexp objects by using the interpolation syntax you know from strings:

Selenium does not speak SSL because it uses WEBrick that doesn't. When you use Selenium for Cucumber scenarios that...

Observed on Rails 2.3 and machinist 1.0.6 Like the title says, when you define the method empty? like in the...