public
Rubygem
Description: Simple tool to help track git and svn vendor branches in a git repository
Homepage: http://github.com/evilchelu/braid/wikis/home
Clone URL: git://github.com/evilchelu/braid.git
test the local braid, not the installed one
evilchelu (author)
Tue Aug 19 13:18:56 -0700 2008
commit  249f33f463b9287036c1a64fb5c0e567d06eb231
tree    0f85d4b0371f04c0874b8f81be6ae83b488b9cd6
parent  c90458776d325c86c15208f1820f4883c1a70243
...
15
16
17
18
 
19
20
21
...
29
30
31
32
 
33
34
35
...
50
51
52
53
 
54
55
56
...
64
65
66
67
 
68
69
70
...
73
74
75
76
 
77
78
79
...
15
16
17
 
18
19
20
21
...
29
30
31
 
32
33
34
35
...
50
51
52
 
53
54
55
56
...
64
65
66
 
67
68
69
70
...
73
74
75
 
76
77
78
79
0
@@ -15,7 +15,7 @@ describe "Adding a mirror in a clean repository" do
0
 
0
     it "should add the files and commit" do
0
       in_dir(@shiny) do
0
-        `braid add --type git #{@skit1}`
0
+        `#{BRAID_BIN} add --type git #{@skit1}`
0
       end
0
 
0
       file_name = "skit1/layouts/layout.liquid"
0
@@ -29,7 +29,7 @@ describe "Adding a mirror in a clean repository" do
0
 
0
     it "should create .braids and add the mirror to it" do
0
       in_dir(@shiny) do
0
-        `braid add --type git #{@skit1}`
0
+        `#{BRAID_BIN} add --type git #{@skit1}`
0
       end
0
 
0
       braids = YAML::load_file("#{@shiny}/.braids")
0
@@ -50,7 +50,7 @@ describe "Adding a mirror in a clean repository" do
0
 
0
     it "should add the files and commit" do
0
       in_dir(@shiny) do
0
-        `braid add --type svn #{@skit1}`
0
+        `#{BRAID_BIN} add --type svn #{@skit1}`
0
       end
0
 
0
       file_name = "skit1/layouts/layout.liquid"
0
@@ -64,7 +64,7 @@ describe "Adding a mirror in a clean repository" do
0
 
0
     it "should create .braids and add the mirror to it" do
0
       in_dir(@shiny) do
0
-        `braid add --type svn #{@skit1}`
0
+        `#{BRAID_BIN} add --type svn #{@skit1}`
0
       end
0
 
0
       braids = YAML::load_file("#{@shiny}/.braids")
0
@@ -73,7 +73,7 @@ describe "Adding a mirror in a clean repository" do
0
       braids["skit1"]["type"].should == "svn"
0
       braids["skit1"]["revision"].should == 1
0
       braids["skit1"]["remote"].should == "braid/skit1"
0
-      braids["skit1"]["branch"].should.be nil
0
+      braids["skit1"]["branch"].should.be == nil
0
     end
0
   end
0
 
...
13
14
15
16
 
17
18
19
...
32
33
34
35
 
36
37
38
...
53
54
55
56
 
57
58
59
...
70
71
72
73
 
74
75
76
...
13
14
15
 
16
17
18
19
...
32
33
34
 
35
36
37
38
...
53
54
55
 
56
57
58
59
...
70
71
72
 
73
74
75
76
0
@@ -13,7 +13,7 @@ describe "Updating a mirror without conflicts" do
0
       @skit1 = create_git_repo_from_fixture("skit1")
0
 
0
       in_dir(@shiny) do
0
-        `braid add --type git #{@skit1}`
0
+        `#{BRAID_BIN} add --type git #{@skit1}`
0
       end
0
 
0
       update_dir_from_fixture("skit1", "skit1.1")
0
@@ -32,7 +32,7 @@ describe "Updating a mirror without conflicts" do
0
 
0
     it "should add the files and commit" do
0
       in_dir(@shiny) do
0
-        `braid update skit1`
0
+        `#{BRAID_BIN} update skit1`
0
       end
0
 
0
       file_name = "layouts/layout.liquid"
0
@@ -53,7 +53,7 @@ describe "Updating a mirror without conflicts" do
0
       @skit1_wc = File.join(TMP_PATH, "skit1_wc")
0
 
0
       in_dir(@shiny) do
0
-        `braid add --type svn #{@skit1}`
0
+        `#{BRAID_BIN} add --type svn #{@skit1}`
0
       end
0
 
0
       update_dir_from_fixture("skit1_wc", "skit1.1")
0
@@ -70,7 +70,7 @@ describe "Updating a mirror without conflicts" do
0
 
0
     it "should add the files and commit" do
0
       in_dir(@shiny) do
0
-        `braid update skit1`
0
+        `#{BRAID_BIN} update skit1`
0
       end
0
 
0
       file_name = "layouts/layout.liquid"
...
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
20
21
22
...
2
3
4
 
 
5
6
7
8
 
 
 
 
 
9
10
11
12
13
14
15
16
0
@@ -2,21 +2,15 @@ require 'rubygems'
0
 require 'test/spec'
0
 require 'mocha'
0
 
0
-#require File.dirname(__FILE__) + '/../lib/braid'
0
-
0
 require 'tempfile'
0
 require 'fileutils'
0
 require 'pathname'
0
 
0
-#tmp_file = Tempfile.new("braid")
0
-#tmp_file_path = tmp_file.path
0
-#tmp_file.unlink
0
-#TMP = File.basename(tmp_file_path)
0
-
0
 TMP_PATH = File.join(Dir.tmpdir, "braid_integration")
0
 BRAID_PATH = Pathname.new(File.dirname(__FILE__)).parent.realpath
0
 FIXTURE_PATH = File.join(BRAID_PATH, "test", "fixtures")
0
 FileUtils.mkdir_p(TMP_PATH)
0
+BRAID_BIN = File.join(BRAID_PATH, "bin", "braid")
0
 
0
 #def exec(cmd)
0
 #  `cd #{TMP} && #{cmd}`

Comments