Geordi 0.16+ supports running selenium tests with project-specific firefox versions. Just update the gem. It will still default to...
If you need to test interaction with a remote API, check out the VCR gem as an alternative to Webmock...
So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...
You might not know that Rails disables CSRF protection in tests. This means that if you accidentally forget to send...
If you want to have routes that are only available in tests (e.g. for testing obscure redirects), you can use...
There may be reasons to change the locale of your Postgres cluster. A popular one is your development system's...
Using text-transform: uppercase - especially on form labels - can cause you serious headaches in Selenium tests. Sometimes the web driver...
We sometimes send calender data or tasks using iCalendar (ICS) via eMail as specified in RFC 5545. Recently, a customer...
In contrast to RSpec's included allow_value matcher, the attached matcher will also work on associations, which makes it...
Preface: Normally, you would not need this in integrations tests (probably that's why it is so hard to achieve...
The translation method translate and its alias t have bang brothers: translate! and t!. They will raise I18n::MissingTranslationData on...
CSS3 comes with new unit rem. It works like em but it is always relative to the element instead of...
When two classes implement the same behavior (methods, callbacks, etc.), you should extract that behavior into a trait or module...
Custom matchers are a useful RSpec feature which you can use to DRY up repetitive expectations in your specs. Unfortunately...
Shared example groups are a useful RSpec feature. Unfortunately the default directory structure generated by rspec-rails has no obvious...
In Rails 5 you can say: ApplicationController.render( :template => 'users/index', :layout => 'my_layout', :assigns => { users: @users } ) If a Request Environment is...
Capistrano 2 brings the shell command which allows you to run commands on your deployment targets. There is also invoke...
Simply give the select helper an option :disabled, passing either a single value or an array. You need to specify...
So you're hunting down a regression (or just a bug) and want to use git bisect to find out...
Consul 0.9 comes with many new features to optimize powers that only check access to a given record. e.g. Power.current.post...
The linked page lists and explains global Ruby "dollar" variables, such as: $: (load path) $* (ARGV) $? (Last exit status) $$ (PID)
The cookies object in your controllers and views is a ActionController::CookieJar and even though that class inherits from Hash...
$RANDOM on bash returns a random integer between 0 and 32767. echo $RANDOM 9816 echo $RANDOM 30922
I recently encountered the error above when I was running selenium tests. Thanks to a post on stackoverflow I found...