Sha256: 230b3051b018dd378ff735b1ab9da4a6e1e63f7b945668096dbbd7a856ad7b7e
Contents?: true
Size: 840 Bytes
Versions: 1
Compression:
Stored size: 840 Bytes
Contents
require File.expand_path '../test_helper.rb', __FILE__ class DeepThoughtProjectTest < MiniTest::Unit::TestCase def setup DatabaseCleaner.start if File.directory?(".projects/_test") FileUtils.rm_rf(".projects/_test") end deployer = mock('class') deployer.stubs(:new).returns(deployer) deployer.stubs(:setup) DeepThought::Deployer.register_adapter('mock', deployer) @project = DeepThought::Project.create(:name => '_test', :repo_url => './test/fixtures/project-test') end def teardown if File.directory?(".projects/_test") FileUtils.rm_rf(".projects/_test") end DatabaseCleaner.clean end def test_project_destroy_deletes_repo FileUtils.mkdir_p(".projects/#{@project.name}") @project.destroy assert !File.directory?(".projects/#{@project.name}") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deep_thought-0.1.0 | test/deep_thought_project_test.rb |