acts_as_dag 1.2.3 → 1.2.4
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.
- checksums.yaml +4 -4
- data/lib/acts_as_dag/acts_as_dag.rb +5 -0
- data/spec/acts_as_dag_spec.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a7a921e4428cd9076f8185484e4ba74d1be9f39
|
4
|
+
data.tar.gz: bb3b20517f05e2b7c0ab292e3339be5439ca67a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60def06e6d20971d87279cfead7e62a71095065249f57f33ecdedd87d4c449c4eea3ee3281b396866e6f47cdf7b98f0e8b1f6c2f9abc2c6acd5115c869c34299
|
7
|
+
data.tar.gz: 1207ee4bb868befd019226da0c3427e40f890a549153f6bdae623b119b54a6111e7c78df6b5b25070da9c2b647950ec77b70d5cca873756c3c98f923eb9aa31f
|
data/spec/acts_as_dag_spec.rb
CHANGED
@@ -129,6 +129,10 @@ describe 'acts_as_dag' do
|
|
129
129
|
@mom.parents.should be_empty
|
130
130
|
@mom.children.should be_present
|
131
131
|
end
|
132
|
+
|
133
|
+
it "should return a list of ancestors and descendants" do
|
134
|
+
@mom.relatives.should == (@mom.ancestors + @mom.descendants).uniq
|
135
|
+
end
|
132
136
|
end
|
133
137
|
|
134
138
|
describe "reorganization" do
|