em_rugged 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/em_rugged/repository.rb +1 -0
- data/lib/em_rugged/version.rb +1 -1
- data/test/em_rugged/repository_test.rb +17 -0
- metadata +5 -5
data/lib/em_rugged/repository.rb
CHANGED
data/lib/em_rugged/version.rb
CHANGED
@@ -53,4 +53,21 @@ describe EMRugged::Repository do
|
|
53
53
|
wait!
|
54
54
|
end
|
55
55
|
end
|
56
|
+
|
57
|
+
describe "#refs" do
|
58
|
+
it "returns deferrable" do
|
59
|
+
deferrable = EMRugged::Repository.new(".").refs
|
60
|
+
assert deferrable.respond_to?(:callback)
|
61
|
+
assert deferrable.respond_to?(:errback)
|
62
|
+
end
|
63
|
+
|
64
|
+
it "yields array" do
|
65
|
+
deferrable = EMRugged::Repository.new(".").refs
|
66
|
+
deferrable.callback do |tree|
|
67
|
+
assert Array === tree
|
68
|
+
done!
|
69
|
+
end
|
70
|
+
wait!
|
71
|
+
end
|
72
|
+
end
|
56
73
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: em_rugged
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Christian Johansen
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-10-03 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -41,7 +41,7 @@ dependencies:
|
|
41
41
|
requirements:
|
42
42
|
- - "="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
hash: -
|
44
|
+
hash: -2424074336
|
45
45
|
segments:
|
46
46
|
- 0
|
47
47
|
- 17
|