Add in Gemfile: group :development, :test do gem 'rspec-rails' gem 'spork-rails' end group :test do gem 'capybara' gem 'database_cleaner' gem 'email_spec' gem 'poltergeist' gem 'launchy'

# require 'spork/ext/ruby-debug' Spork.prefork do # Loading more in this block will cause your tests to run faster. However, # if you change any configuration or code from libraries loaded here...

...global user.email email@example.com ^ Install RVM: curl -sSL https://get.rvm.io | bash -s stable ^ source ~/.rvm/scripts/rvm ^ Test RVM installation correctness: type rvm | head -1 #should return something like this: rvm is a...

wiki

...host: localhost encoding: unicode database: proj_development pool: 5 username: proj password: template: template0 test: adapter: postgresql host: localhost encoding: unicode database: proj_test pool: 5 username: proj password:

# you can import addition *.rake files # app.add_import 'some/other/file.rake' rake.load_rakefile rake['db:test:prepare'].invoke...

github.com

...mark needed describes and its as ddiscribe and iit, and next time you run tests only ddiscribes and iits will be executed. In Jasmine version >= 2.0 use fit and fdescribe...

Best results in other decks

mail-tester.com

...limited to 3 e-mails per day. Further reading ActionMailer: How to send a test mail directly from the console Debugging SPF records

A flaky test is a test that is often green, but sometimes red. It may only fail on some PCs, or only when the entire test suite is run.

...are many causes for flaky tests. This card focuses on a specific class of feature with heavy side effects, mostly on on the UI. Features like the following can amplify...

Search in all decks