Skip to content

Instantly share code, notes, and snippets.

@rjz
Created June 27, 2013 03:18
Show Gist options
  • Select an option

  • Save rjz/5873695 to your computer and use it in GitHub Desktop.

Select an option

Save rjz/5873695 to your computer and use it in GitHub Desktop.
Rails default test_helper.rb @maiab
ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
#
# Note: You'll currently still have to declare fixtures explicitly in integration tests
# -- they do not yet inherit this setting
fixtures :all
# Add more helper methods to be used by all tests here...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment