Dahistory 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/Dahistory/version.rb +1 -1
- data/spec/tests/Dashistory.rb +17 -9
- metadata +1 -1
data/lib/Dahistory/version.rb
CHANGED
data/spec/tests/Dashistory.rb
CHANGED
@@ -93,11 +93,15 @@ describe "Dahistory :git_add_commit" do
|
|
93
93
|
|
94
94
|
Dir.chdir(@proj) {
|
95
95
|
File.write @file, @file
|
96
|
-
|
97
|
-
|
98
|
-
o
|
99
|
-
|
100
|
-
|
96
|
+
|
97
|
+
begin
|
98
|
+
Dahistory { |o|
|
99
|
+
o.file @file
|
100
|
+
o.git_add_commit
|
101
|
+
target = "Backup: #{o.backup_file}"
|
102
|
+
}
|
103
|
+
rescue Dahistory::Pending => e
|
104
|
+
end
|
101
105
|
|
102
106
|
Exit_Zero('git log -n 1 --oneline --decorate=short')
|
103
107
|
.out[target].should == target
|
@@ -115,10 +119,14 @@ describe "Dahistory :git_add_commit_push" do
|
|
115
119
|
|
116
120
|
Dir.chdir(@proj) {
|
117
121
|
File.write @file, @file
|
118
|
-
|
119
|
-
|
120
|
-
o
|
121
|
-
|
122
|
+
|
123
|
+
begin
|
124
|
+
Dahistory { |o|
|
125
|
+
o.file @file
|
126
|
+
o.git_add_commit_push
|
127
|
+
}
|
128
|
+
rescue Dahistory::Pending => e
|
129
|
+
end
|
122
130
|
|
123
131
|
Exit_Zero('git push 2>&1').out["Everything up-to-date"].should == "Everything up-to-date"
|
124
132
|
}
|