Mercurial > hg > soundsoftware-site
annotate .svn/pristine/78/784c9b0d2d8855db8c97b7e039fb2ee4a682fc0e.svn-base @ 1628:9c5f8e24dadc live tip
Quieten this cron script
author | Chris Cannam |
---|---|
date | Tue, 25 Aug 2020 11:38:49 +0100 |
parents | cbb26bc654de |
children |
rev | line source |
---|---|
Chris@909 | 1 require File.dirname(__FILE__) + '/../test_helper' |
Chris@909 | 2 |
Chris@909 | 3 class TestingTest < Test::Unit::TestCase |
Chris@909 | 4 def setup |
Chris@909 | 5 Engines::Testing.set_fixture_path |
Chris@909 | 6 @filename = File.join(Engines::Testing.temporary_fixtures_directory, 'testing_fixtures.yml') |
Chris@909 | 7 File.delete(@filename) if File.exists?(@filename) |
Chris@909 | 8 end |
Chris@909 | 9 |
Chris@909 | 10 def teardown |
Chris@909 | 11 File.delete(@filename) if File.exists?(@filename) |
Chris@909 | 12 end |
Chris@909 | 13 |
Chris@909 | 14 def test_should_copy_fixtures_files_to_tmp_directory |
Chris@909 | 15 assert !File.exists?(@filename) |
Chris@909 | 16 Engines::Testing.setup_plugin_fixtures |
Chris@909 | 17 assert File.exists?(@filename) |
Chris@909 | 18 end |
Chris@909 | 19 end |