Inside before :each blocks you can refer to variables that you introduce via let later on. They do not need...

If you have several submit elements (inputs or buttons with type="submit") that each cause different things to happen (e.g...

These steps are now part of Spreewald. This note describes a Cucumber step that lets you write this:

makandra dev

Note that you should disable the Java plug-in in your browsers after installation. Ubuntu >= 12.04 Java 11

Cucumber step argument transforms can be a powerful way to make your steps more flexible. Note however that if your...

testobsessed.com

So this is the simulation that I use in my Agile Testing class, as well as in other contexts where...

RSpec's context (which is basically an alias for describe) takes over your whole application. No object may have its...

In /etc/crontab In /etc/cron.d/* In /etc/cron.hourly/* In /etc/cron.daily/* In /etc/cron.weekly/* In /etc/cron.monthly/* In the personal crontab of any user. This...

We use RTeX for PDF exports. While converting LaTeX to PDF, RTeX opens a temporary file which has problematic permissions...

web.archive.org

With its you can switch the subject of an example to a method value of the current subject: describe Array...

beust.com

It’s pretty common for projects hosted on GitHub to receive “pull requests”: requests from people who have cloned your...

Find conditions for scopes can be given either as an array (:conditions => ['state = ?', 'draft']) or a hash (:conditions => { 'state' => 'draft...

youtube.com

power-rake db:migrate VERSION=20100913132321 By default the environments development, test, cucumber and performance are considered...

To only run a single describe/context block in a long spec, you can say spec spec/models/note_spec.rb:545 ... where the describe...

There are many different methods that allow mapping an Array to a Hash in Ruby. Array#to_h with a...

This will show you how to create a RSS feed that the Feed Validator considers valid. Note that RSS is...

In modern Rails versions you can also use ActiveRecord's pluck method. User.active.pluck(:id) => [1, 5, 23, 42]

makandra dev

If you want to rename a key of a Ruby hash, this could help you out. Just put it into...

images.google.com

In july Google announced a new version of their image serach tool Google Images. But you won't find it...

First of all: You could just use RVM which would make the pain go away. If for some reason you...

github.com

You can use the whatlanguage gem to detect the language of a Ruby string. Note that it also has not...

Be careful! The following solution will delete files on a volume. If you don't know exactly what you're...

paulirish.com

Cached fonts WILL caused an unstyled flash of text.