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.
@@ -38,5 +38,6 @@ module EMRugged
38
38
  end
39
39
 
40
40
  defer :rev_parse
41
+ defer :refs
41
42
  end
42
43
  end
@@ -24,5 +24,5 @@
24
24
  #++
25
25
 
26
26
  module EMRugged
27
- VERSION = "0.1.2"
27
+ VERSION = "0.1.3"
28
28
  end
@@ -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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
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-09-25 00:00:00 +02:00
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: -2060942432
44
+ hash: -2424074336
45
45
  segments:
46
46
  - 0
47
47
  - 17