public
Description: Piston is a utility that eases vendor branch management. This repository is a complete reimplementation of Piston to provide different backends, depending on the repositories and working copies you pistonize from.
Homepage: http://piston.rubyforge.org/
Clone URL: git://github.com/francois/piston.git
Sat Apr 19 15:03:41 -0700 2008
francois (committer)
Mon Apr 21 13:14:25 -0700 2008
commit  1cef7b69dff6ad3bd62e5127a38f2de73ee89456
tree    531c3f4e39de7494ad28813361de00dc968d7e40
parent  e90f935a38bb88f37da5a3ba849531173c107413
piston / test / unit / test_import.rb
100644 14 lines (11 sloc) 0.405 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require File.dirname(__FILE__) + "/../test_helper"
 
class TestImport < Test::Unit::TestCase
  def setup
    @wc = stub_everything("working_copy")
    @cmd = Piston::Commands::Import.new
  end
 
  def test_temp_dir_name_hides_tmpdir_as_a_dotfile_and_suffixes_with_tmp
    @wc.stubs(:path).returns(Pathname.new("tmp/a/dir"))
    assert_equal Pathname.new("tmp/a/.dir.tmp"), @cmd.temp_dir_name(@wc)
  end
end