Around will not happen until after a feature's Background has been processed. Use Before and After to avoid that...
If you require your Rails models manually, pay attention to the path you use. Unless you have...
Show failing specs instantly. Show passing spec as green dots as usual. Configuration: # spec/spec.opts (.rspec for rspec 2) --require rspec/instafail...
Why is this useful? You can have a background image on the same element, overlaying it with a transparent gradient...
When is this useful? When both parent and child elements have borders, with this technique you don't get two...
In a Rails application, *_spec.rb files get special treatment depending on the file's directory. E.g. when you put a...
Takes a screenshot when you call it, or when a test fails.
The linked slidedeck holds many tips, of which I list the most interesting to me below DATA and END
The __END__ keyword tells Ruby where a file ends – but you don't have to stop there. Any text you...
Geordi now supports our solution for running Selenium tests without having Firefox or Chrome windows popping up all over your...
Example task: Multiply the table holidays between several stages. Open two terminals: shell-for stage_1 shell-for stage_2...
If some of your JavaScripts fail on Internet Explorer, but only in staging or production environments, chances are that JavaScript...
This didn't work for me. Seems display is already taken in Machinist. # in spec/support/blueprints.rb Partner.blueprint do company_name
You're using exception_notification and want to send exception mails within a model. Here's how. The ExceptionNotifier class...
This describes how to migrate an existing cucumber test suite to Spreewald. Add the gem Include spreewald into your cucumber...
TL;DR Avoid before(:context) (formerly before(:all)), use before(:example) (formerly before(:each)) instead. If you do use before...
Today I got a better understanding of how git works, in particular what git checkout and git reset do.
Ever wanted autocompletion for paths from paths.rb in Cucumber? This card lets you write your steps like this:
Trick: Do not use convert but mogrify: mogrify -resize 50% * This overwrites the original image file. In contrast, convert writes...
Note: Modern Rails has two build pipelines, the asset pipeline (or "Sprockets") and Webpacker. The principles below apply for both...
The step definition below allows you to write: Then I should see an HTML redirect to "http://www.makandracards.com" in the...
Keychain helps you to manage ssh and GPG keys in a convenient and secure manner. It acts as a frontend...
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...