mark_mega_lotto 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mark_mega_lotto.rb +4 -0
- data/lib/mark_mega_lotto/version.rb +1 -1
- data/spec/mark_mega_lotto/mark_mega_lotto_spec.rb +12 -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: 6e90230c69349fe39d6e0f2c0879cbaf4a4566fd
|
4
|
+
data.tar.gz: 0ccfd52f620937160b4831c6739f16165c22890e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ee37cf65593534f46031180926b7d68cbbc905ac620cd256d5ed140228fc37082db8a47a80cf178ccdf28eeef1ddb0cf5bc23b07ac59b055a9dae02a5d18af3
|
7
|
+
data.tar.gz: ad9fcf9c52ed55069c256e131565f5382281927957bb320b872b76f041105bc8856c48a61c24f58e07c8eb739233fe7c60afebaec65887d97c40eee7d0194d1d
|
data/lib/mark_mega_lotto.rb
CHANGED
@@ -26,6 +26,18 @@ module MarkMegaLotto
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
describe "#reset" do
|
30
|
+
it "resets the configuration" do
|
31
|
+
MarkMegaLotto.configure do |config|
|
32
|
+
config.drawing_count = 20
|
33
|
+
end
|
34
|
+
|
35
|
+
MarkMegaLotto.reset
|
36
|
+
|
37
|
+
expect(MarkMegaLotto::Drawing.new.draw.size).to eq 8
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
29
41
|
describe "can set the output count" do
|
30
42
|
before(:each) do
|
31
43
|
MarkMegaLotto.configure do |config|
|