seatbelt 0.3.1 → 0.4.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: 77b160e542b69e2cb2c1cf37eac93756d3ebbbae
4
- data.tar.gz: 06a3fd08f4162714ba7ecbeeeb2a4ac366e3fb2b
3
+ metadata.gz: b432a1876ac0af308c81961c8a7bf8f917cd12ce
4
+ data.tar.gz: ba90186340d96bd9af93aafa527d4e01b39ea587
5
5
  SHA512:
6
- metadata.gz: a688d0d651421b8794a5ec977ad648f5d74661864a9e821a5840200ad073beab740378ab6990c5897a394522c5ca7fbd09097f619032e09fe7ebbd8521e87c18
7
- data.tar.gz: 48e81a7e035542e9c41171ee92643fa5c27a860ff2852212401f74bfc53d84e74a489c93d939cd26a36031bbd672eb81e34a1271f8864ca3bcf4eb9aa41b5a52
6
+ metadata.gz: c1618255ffc44a0ea50d76a28c98e1fa8c5d177bbea5f4275b6bb1c28548e61f743d4abaf59d1609ddbaa6e734f989f8bee2d0abe7fc0ac822b2fe0f37fd01d5
7
+ data.tar.gz: 5f511fa0bf35717cdd82dac728ff2dda955329bb79fe7e62afe0b848ecb13107b75f572d222e69506fa751f9f7341e3da78b32931a41cf91c7377cd315f8001b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.4.0
4
+
5
+ * supporting `refute_mail` now as well (minitest style) (see [issue #4](https://github.com/alto/seatbelt/pull/4)), thanks to [@jch](https://github.com/jch)
6
+
3
7
  ## 0.3.1
4
8
 
5
9
  * bugfix for Rails 4.1 and Minitest 5.x support
data/README.md CHANGED
@@ -92,7 +92,7 @@ class MyTest < Test::Unit::TestCase
92
92
  end
93
93
 
94
94
  def test_crosscheck
95
- assert_no_mail do
95
+ refute_mail do
96
96
  this_should_not_send_an_email
97
97
  end
98
98
  end
@@ -8,6 +8,7 @@ module Seatbelt
8
8
  def assert_no_mail(options={}, &block)
9
9
  assert find_email(options, &block).nil?, "didn't expect mail (#{options.inspect}) in #{ActionMailer::Base.deliveries.inspect}"
10
10
  end
11
+ alias_method :refute_mail, :assert_no_mail
11
12
 
12
13
  private
13
14
 
@@ -1,3 +1,3 @@
1
1
  module Seatbelt
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -56,6 +56,8 @@ class Seatbelt::AssertMailTest < Minitest::Test
56
56
  abc = 1 + 1
57
57
  end
58
58
 
59
+ refute_mail { 3 }
60
+
59
61
  assert_no_mail :to => 'another@seatbelt.co.nz' do
60
62
  Mailer.test.deliver
61
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seatbelt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thorsten Böttger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-24 00:00:00.000000000 Z
11
+ date: 2014-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json