Spreewald gives you the within meta step that will constrain page inspection to a given scope. Unfortunately, this does not...
When you find yourself in the situation that you would like to define a custom matcher in your specs, but...
To delay your entire Jasmine test suite until the DOM is ready, add the following: beforeAll(function(done) { $(done); });
fake_stripe spins up a local server that acts like Stripe’s and also serves a fake version of Stripe.js...
When dealing with time zones in Rails, there is one key fact to keep in mind: Rails has configurable time...
Expecting a primitive value as an argument to a method invocation is easy: expect(object).to receive(:foo).with('arg1...
OAuth requires a set of params to be carried along requests, among which a nonce. Some libraries pass these along...
When creating an index using CREATE INDEX, Postgres will create a B-Tree type index by default. The B-Tree...
Current webkit browsers like Chrome and Safari have a special variable in their consoles that refers to the selected DOM...
The NestedHash class allows you to read and write hashes of any depth. Examples: hash = {} NestedHash.write hash, 'a', 'b', 'c...
Enter any command into explainshell and it will explain it to you: split into separate commands (if present), with each...
If you want to inspect the compiled code of your erb (or haml) templates, you can run the following code...
RSpec provides a nice diff when certain matchers fail. Here is an example where this diff is helpful while comparing...
Don't write resources :people, :concerns => :trashable Write resources :people do concerns :trashable end Why Writing a controller...
If you want to configure your nginx to drop connections to a specific location, you can do so by responding...
Our preferred way of testing ActiveRecord is to simply create/update/destroy the record and then check if the expected behavior has...
RSpec supports a one-liner syntax for setting an expectation on the subject: describe Array do describe "when first created...
Validations should be covered by a model's spec. This card shows how to test an individual validation. This is...
If you expect method calls in RSpec 3, be aware that the argument matchers use very liberal equality rules (more...
In JavaScript we often use Immediately Invoked Function Expessions (or IIFEs) to prevent local variables from bleeding into an outside...
Don't use be_true to check if a value is true. It actually checks if it anything other than...
Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...
Note Maintenance mode is enabled on application server as soon as the file /public/system/maintenance.html is present. Note that the servers...
A comprehensive script to convert test suites from RSpec 2 to RSpec 3. This converts more than should/expect syntax.