rbsync 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rbsync.rb +0 -3
- data/rbsync.gemspec +1 -1
- data/test/test_rbsync.rb +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.1
|
data/lib/rbsync.rb
CHANGED
data/rbsync.gemspec
CHANGED
data/test/test_rbsync.rb
CHANGED
@@ -76,7 +76,7 @@ class TestRbsync < Test::Unit::TestCase
|
|
76
76
|
Dir.mkdir("old")
|
77
77
|
Dir.mkdir("new")
|
78
78
|
open("./old/test.txt", "w+"){|f| 1000.times{f.puts("test")}}
|
79
|
-
open("./new/test.txt", "w+"){|f| 1000.times{f.puts("
|
79
|
+
open("./new/test.txt", "w+"){|f| 1000.times{f.puts("tests")}}
|
80
80
|
rsync = RbSync.new
|
81
81
|
rsync.sync("old","new",{:check_hash=>true,:hash_limit_size=>1024})
|
82
82
|
assert FileUtils.cmp("old/test.txt","new/test.txt")
|
@@ -92,7 +92,7 @@ class TestRbsync < Test::Unit::TestCase
|
|
92
92
|
open("./new/test.txt", "w+"){|f| 2048.times{f.write("a")}}
|
93
93
|
rsync = RbSync.new
|
94
94
|
rsync.sync("old","new",{:check_hash=>true,:hash_limit_size=>1024})
|
95
|
-
assert FileUtils.cmp("old/test.txt","new/test.txt")
|
95
|
+
assert FileUtils.cmp("old/test.txt","new/test.txt") == false
|
96
96
|
end
|
97
97
|
end
|
98
98
|
end
|
metadata
CHANGED