Skip to content

Instantly share code, notes, and snippets.

@deanh
Created July 30, 2011 21:05
Show Gist options
  • Save deanh/1115992 to your computer and use it in GitHub Desktop.
Save deanh/1115992 to your computer and use it in GitHub Desktop.
ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require 'minitest/autorun'
require 'ministat'
require 'json'
module Sprouting
class TestCase < MiniTest::Unit::TestCase
include ActiveSupport::Testing::SetupAndTeardown
include ActiveRecord::TestFixtures
alias :method_name :__name__ if defined? :__name__
self.fixture_path = File.join(Rails.root, 'test', 'fixtures')
end
class ControllerTestCase < ActionController::TestCase
include MiniTest::Assertions
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment