simple_enum 2.0.0.rc1 → 2.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple_enum/enum.rb +4 -0
- data/lib/simple_enum/version.rb +1 -1
- data/spec/simple_enum/enum_spec.rb +6 -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: 1f8cd2d424c3387cd12f6c4a4e22873641f8fc1b
|
4
|
+
data.tar.gz: 0d1728690e77c485e5dc1770644248eda9e2ba50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 916b55125dbb05aee70240b765486b4410633aca3649552d3bbc53ab3c28bacf574de4b653bb52a4e0160649bcd0b3edbada87ce4fc2c0c237b0d7f7a7ff581d
|
7
|
+
data.tar.gz: 300f0e6a4916004ea5970b2716d46244d40c83c59ebe63851047cdc04b11137abe7e5b936d5a7ae71f6754fb1517c2888abe1260f5ff85de41208211189dcf73
|
data/lib/simple_enum/enum.rb
CHANGED
data/lib/simple_enum/version.rb
CHANGED
@@ -32,6 +32,12 @@ describe SimpleEnum::Enum do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
context '#keys' do
|
36
|
+
it 'returns the keys in the order added' do
|
37
|
+
expect(subject.keys).to eq %w{male female}
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
35
41
|
context '#each_pair (aliased to #each)' do
|
36
42
|
it 'yields twice with #each_pair' do
|
37
43
|
expect { |b| subject.each_pair(&b) }.to yield_control.exactly(2).times
|