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

Download buttons can be difficult to test, especially with Selenium. Depending on browser, user settings and response headers, one of three things can happen: The browser shows a "Save as...

...through Selenium. The browser automatically downloads the file without prompting the user. For the test it looks like nothing has happened. The browser shows a binary document in its own...

Search in all decks