test_helper.rb 229 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../../../../config/environment") class Test::Unit::TestCase protected def assigns(sym) @controller.instance_variable_get("@#{sym}") end end