minitest-matchers_vaccine 1.0.2 → 1.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb80454b738eb771f9cca770dd92759a32530235
4
- data.tar.gz: e4cee0805b5eb057bccc9d43fdd6f4f247fe622f
3
+ metadata.gz: 816e6b014147c01f3dfad27640b0dcbc481d2895
4
+ data.tar.gz: 191da7e972691e2f404ec08830610f2811aee607
5
5
  SHA512:
6
- metadata.gz: 368eba63adc0a8c66cea8b5fa2e5148867d42bc86d56e5c05cf3f1b3ad28e17e5f8dd2e75aa4f933fcf23a3f7f485c64ba76e002096ee0b3ed399b2989f278f6
7
- data.tar.gz: 080ab87fa00653728ea1cd97c3a2cfe09e2dbfa90ff8ef34d6d74c520dc63d1afeb4dc184e9cb8955887af198735f8344efa88fb778e3819d6ddc4e1c405b97c
6
+ metadata.gz: 7be5479863fc3eb26f9d5ed3420b2cc1a9faacb4aff5f6a193cc75e4baa9b7149313dac5b10cf3da93cb58b6de7e8a428748dc57727450ba1af28054e3fdeb49
7
+ data.tar.gz: a2014f45d50682f930d5be735d4c3a37c88bf5f89fb773650fd086f2edcdb3bdf9e6fc8ae46a380404ad3b0a0504f5f71e474c03285e49dc5307891dd42fdee6
data/README.md CHANGED
@@ -18,25 +18,21 @@ gem is actually heavily inspired by and based upon the assertions in
18
18
  minitest-matchers; however, everything else that minitest-matchers brings to
19
19
  the table is unnecessary unless you're bent on a true RSpec-style syntax.
20
20
 
21
- ## How You Can Help
21
+ ---
22
22
 
23
- **If you like this project, please help. [Donate via Gittip][gittip] or [buy me a coffee with Bitcoin][bitcoin].**<br>
24
- [![Gittip](http://img.shields.io/gittip/rmm5t.svg)][gittip]
25
- [![Bitcoin](http://img.shields.io/badge/bitcoin-buy%20me%20a%20coffee-brightgreen.svg)][bitcoin]
23
+ **How You Can Help**
26
24
 
27
- **[Bitcoin][bitcoin]**: `1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m`<br>
28
- [![Bitcoin Donation][bitcoin-qr-small]][bitcoin-qr-big]
25
+ [![Square Cash](http://img.shields.io/badge/square%20cash-$rmm5t-brightgreen.svg)][square]
26
+ [![Gratipay](http://img.shields.io/gratipay/rmm5t.svg)][gratipay]
27
+ [![Book a Codementor session](http://img.shields.io/badge/codementor-book%20a%20session-orange.svg)][codementor]
29
28
 
30
- ## Need Help?
29
+ If you like this project, [buy me a coffee][square], [donate via Gratipay][gratipay], or [book a session with me on Codementor][codementor].
31
30
 
32
- **You can [book a session with me on Codementor][codementor].**<br>
33
- [![Book a Codementor session](http://img.shields.io/badge/codementor-book%20a%20session-orange.svg)][codementor]
31
+ Bitcoin: `1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m`
34
32
 
35
- [gittip]: https://www.gittip.com/rmm5t/ "Donate to rmm5t for open source!"
36
- [bitcoin]: https://blockchain.info/address/1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m "Buy rmm5t a coffee for open source!"
37
- [bitcoin-scheme]: bitcoin:1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m?amount=0.01&label=Coffee%20to%20rmm5t%20for%20Open%20Source "Buy rmm5t a coffee for open source!"
38
- [bitcoin-qr-small]: http://chart.apis.google.com/chart?cht=qr&chs=150x150&chl=bitcoin%3A1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m%3Famount%3D0.01%26label%3DCoffee%2520to%2520rmm5t%2520for%2520Open%2520Source
39
- [bitcoin-qr-big]: http://chart.apis.google.com/chart?cht=qr&chs=500x500&chl=bitcoin%3A1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m%3Famount%3D0.01%26label%3DCoffee%2520to%2520rmm5t%2520for%2520Open%2520Source
33
+ [square]: https://cash.me/$rmm5t "Donate to rmm5t for open source!"
34
+ [gratipay]: https://gratipay.com/rmm5t/ "Donate to rmm5t for open source!"
35
+ [bitcoin]: bitcoin:1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m?amount=0.01&label=Coffee%20to%20rmm5t%20for%20Open%20Source "Buy rmm5t a coffee for open source!"
40
36
  [codementor]: https://www.codementor.io/rmm5t?utm_campaign=profile&utm_source=button-rmm5t&utm_medium=shields "Book a session with rmm5t on Codementor!"
41
37
 
42
38
  ## Installation
@@ -38,7 +38,7 @@ module Minitest
38
38
  # must belong_to :account
39
39
  # must have_many :line_items
40
40
  # end
41
- def must(matcher, subject = @subject || subject, msg = nil)
41
+ def must(matcher, subject = @subject || subject(), msg = nil)
42
42
  assert_must matcher, subject, msg
43
43
  end
44
44
 
@@ -80,7 +80,7 @@ module Minitest
80
80
  # it "should validate" do
81
81
  # wont have_valid(:email).when("foo", "foo@bar", "@bar.com")
82
82
  # end
83
- def wont(matcher, subject = @subject || subject, msg = nil)
83
+ def wont(matcher, subject = @subject || subject(), msg = nil)
84
84
  assert_wont matcher, subject, msg
85
85
  end
86
86
  end
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module MatchersVaccine
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
@@ -89,7 +89,7 @@ describe "#must" do
89
89
 
90
90
  describe "without a subject" do
91
91
  it "should error" do
92
- assert_raises(NameError) { must be_instance_of Array }
92
+ assert_raises(NoMethodError) { must be_instance_of Array }
93
93
  end
94
94
  end
95
95
  end
@@ -125,7 +125,7 @@ describe "#wont" do
125
125
 
126
126
  describe "without a subject" do
127
127
  it "should error" do
128
- assert_raises(NameError) { wont be_instance_of Array }
128
+ assert_raises(NoMethodError) { wont be_instance_of Array }
129
129
  end
130
130
  end
131
131
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-matchers_vaccine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan McGeary
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-03 00:00:00.000000000 Z
11
+ date: 2015-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.2.2
88
+ rubygems_version: 2.4.6
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: Adds support for RSpec-style matchers to minitest.