github.com

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

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

gem-session.com

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

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

...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...

Best results in other decks

Understand why we test: Low defect rate without a QA department. Customer acceptance testing can concentrate on new features and things a robot cannot do (e.g. how does a...

...without needing to understand the entire system. Why do we use different types of tests? What are the pros and cons of unit tests? What are the pros and cons...

Learn to create test data effectively using factories. Decouple tests by having each test start with an empty database and create only the records needed for the test.

...Factories, not fixtures By default Rails uses global fixtures for its tests. This is a giant world of example data that grows with every test. In our experience the use...

Search in all decks