Sha256: 2789ae0f0bd6530fb32c99867f238a68412e3c5cc3a599c172dcc462b08e74c2
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 KB
Contents
require 'rubygems' require 'test/unit' require 'active_support' require 'active_record' require 'active_record/fixtures' ActiveRecord::Base.configurations = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml')) ActiveRecord::Base.establish_connection('test') ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log") load(File.dirname(__FILE__) + "/schema.rb") $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'features' class ActiveSupport::TestCase include ActiveRecord::TestFixtures def create_fixtures(*table_names) if block_given? Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names) { yield } else Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names) end end # Turn off transactional fixtures if you're working with MyISAM tables in MySQL self.use_transactional_fixtures = true # Instantiated fixtures are slow, but give you @david where you otherwise would need people(:david) self.use_instantiated_fixtures = false # Add more helper methods to be used by all tests here... end ActiveSupport::TestCase.fixture_path = File.dirname(__FILE__) + "/fixtures/" $LOAD_PATH.unshift(ActiveSupport::TestCase.fixture_path)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zendesk-features-1.0.0 | test/test_helper.rb |
zendesk-features-1.0.1 | test/test_helper.rb |
zendesk-features-1.0.2 | test/test_helper.rb |