config.action_controller.action_on_unpermitted_parameters enables logging or raising an exception if parameters that are not explicitly permitted are...
Spring is a Rails application preloader. When debugging e.g. the rails gem, you'll be wondering why your raise, puts...
Programatically invoke Rails generators Require the generator, instantiate it and invoke it (because generators are Thor::Groups, you need...
Use the following command to test if a server (in this example: makandra.com on port 443) uses Perfect Forward Secrecy...
Enter the hostname of a server to test it for CVE-2014-0160.
When using TextMate2 with the cucumber bundle, it does not recognize step definitions (e.g. custom_steps.rb) as such but believes they...
I recently had a need to demonstrate a data-heavy application to potential customers. Demonstrating the application with bogus numbers...
Local testing allows you to test your private and internal servers using the BrowserStack cloud, which has support for firewalls...
Your development machine is usually on a very good network connection. To test how your application behaves on a slow...
Store each models version in a separate table class Post < ActiveRecord::Base has_paper_trail :class_name => 'PostVersion' end
Tests are about 100% control over UI interaction and your test scenario. Randomness makes writing tests hard. You will also...
class Book::Page end class MyBook < Book def new_page Page.new # has to be `Book::Page` in development to...
Make your custom web font available Add to ckeditor/config.js CKEDITOR.editorConfig = function(config) { config.contentsCss = [ '/assets/myCkeditorStyles.css', // any other file to encapsulate custom...
Sometimes you have a test expectation but actually want a better error message in case of a failure. Here is...
Mornings can be rough. To make them a little easier, leave yourself a failing test if your work isn’t...
After I upgraded to Mac OS X Mavericks, I regularly got this error message when running Cucumber features with Selenium...
We have released Modularity 2. It has many incompatible changes. See below for a script to migrate your applications automatically...
If you want to test that a certain text is contained within the document title of your page, you can...
TLDR: This card explains which threads and processes interact with each other when you run a Selenium test with Capybara...
Modern IRB has time measurement built in. measure # Enable measure :off # Disable Custom Should your version of IRB not offer...
Assert rmagick provision ... Gemfile gem 'rmagick', '2.13.2' # at this moment the latest stable version config/initializer/carrierwave.rb require 'carrierwave/processing/rmagick' ... and define a...
This error occurs when you already have a database.yml which defines the database for the cucumber environment instead of test...
I've written about the problem with user stories before. At the time, I found it better to just have...
Use protocol independent URLs whenever possible so that the browser will choose the protocol related to the protocol which the...