Sometimes you just want to have a small web server that serves files to test something. Serve the current directory...
If you get an error like: subprocess installed post-removal script returned error exit status 78 when installing/removing/updating a package...
You want to test your 1GE or 10GE internet uplink? We needed to ensure we have full 10GE to the...
A fantastic guide for a dilemma facing any web-based product. Here’s a simple set of Yes/No questions that...
SitePrism gives you a simple, clean and semantic DSL for describing your site using the Page Object Model pattern, for...
Some dozen generic API endpoints you can use to test how your HTTP client deals with various responses, e.g.
Interesting talk about a team that integrated automated security testing into their BDD workflow. There is also a video of...
CTRL + SHIFT + ALT + N : Search for any symbol in your application, like CSS classes, Ruby classes, methods, helpers etc...
Jasmine comes with two matchers that test for equality. The first is toBe: expect(first).toBe(second) toBe passes when...
Large projects usually have large test suites that can run for a long time. This can be annoying as running...
Jasmine has a jasmine.clock() helper that you can use to travel through time and trigger setTimeout and setInterval callbacks:
You might wonder about this request in your test.log: Started GET "/__identify__" for 127.0.0.1 at 2015-04-29 18:00...
TL;DR Under certain circumstances, dynamically defined symbols may break keyword arguments in Ruby 2.2. This was fixed in Ruby...
When ending a Selenium test Capybara resets the browser state by closing the tab, clearing cookies, localStorage, etc.
RSpec 3 has verifying doubles. This breed of mock objects check that any methods being stubbed are present on an...
You can hook into Slack when using Capistrano for deployment. The slackistrano gem does most of the heavy lifting for...
Geordi 1.0 features a command line application geordi, that holds most of Geordi's previous commands. New features
Add gem 'database_cleaner' to your Gemfile. Then: Cucumber & Rails 3+ # features/support/database_cleaner.rb DatabaseCleaner.clean_with(:deletion) # clean once, now DatabaseCleaner.strategy = :transaction...
When navigating back to a page that was received from a POST request, undesired side effects may happen. Therefore, modern...
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...
When testing code that uses pushState / replaceState, your browser will appear to navigate away from http://localhost:3000/specs (or wherever...
This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. This setup allows...
Cucumber will clean up files you've uploaded in your Cucumber features automatically with the attached code. Put the file...
This step will pass if the specified select is sorted. Then /^the "(.*?)" select should be sorted$/ do |label, negate|