exogen.github.com

Unlock achievements for running your test suite...

robots.thoughtbot.com

ShamRack mounts a Rack app locally, just for your tests. It goes one further: it “mounts” it using Net::HTTP such that requests to the Rack app never hit any...

github.com

The Holy Grail of testing for front-end development; execute browser-less, console-based, javascript + DOM code right from within your Rails test suite...

Always use simply require 'spec_helper' If you mix it up like require 'spec_helper' require File.dirname(__FILE__) + '/../spec_helper'

If your Ruby project includes a gem like Spreewald that comes with some external step definition, RubyMine does not know...

This raises "Could not find first Keyword": describe Keyword do it { should validate_uniqueness_of(:text) } end Do this instead...

github.com

Put the attached file into features/support/. Example usage: When /^I open the task named "(.+?)"$/ do |task_name| task = page.all('.task...

The Rails secret_token must be unique for each application and any instance of it. If not, someone could exploit...

gem-session.com

If you want to exclude your staging site from Google using robots.txt without running the risk to forget deleting the...

...to a given address. This is useful for staging environments where you want to test production-like mail delivery without sending e-mails to real users...

makandracards.com

...showing how to set a fixed random seed and clear Faker::UniqueGenerator before each test