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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5854d4690f7153e3b18794c01101c8d90a684d0f
4
- data.tar.gz: b26a895c05f734aa040d15c994ed1696c6225d1b
3
+ metadata.gz: 6e90230c69349fe39d6e0f2c0879cbaf4a4566fd
4
+ data.tar.gz: 0ccfd52f620937160b4831c6739f16165c22890e
5
5
  SHA512:
6
- metadata.gz: 098666e8e2fd7ae557971b1d680f7fcda84506207c98fb5f9bdfe135b915462f55f0c82eb29b37810a5c393a156d32d18fd80474c6eed02d8980da7725f0ce13
7
- data.tar.gz: c605efa0866cef943e5da942db444f2ee2147f36c906ee2ef45c6365a9003a1acf984202c391b8b4fd4f34cdd770b09e46d27219ab0624dffc91beba7444931e
6
+ metadata.gz: 2ee37cf65593534f46031180926b7d68cbbc905ac620cd256d5ed140228fc37082db8a47a80cf178ccdf28eeef1ddb0cf5bc23b07ac59b055a9dae02a5d18af3
7
+ data.tar.gz: ad9fcf9c52ed55069c256e131565f5382281927957bb320b872b76f041105bc8856c48a61c24f58e07c8eb739233fe7c60afebaec65887d97c40eee7d0194d1d
@@ -13,4 +13,8 @@ module MarkMegaLotto
13
13
  def self.configure
14
14
  yield configuration
15
15
  end
16
+
17
+ def self.reset
18
+ @configuration = Configuration.new
19
+ end
16
20
  end
@@ -1,3 +1,3 @@
1
1
  module MarkMegaLotto
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -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|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mark_mega_lotto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Chavez