moto 0.7.3 → 0.7.4

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: b7dfa94193904de4da842adb7573c6cf154561fc
4
- data.tar.gz: 38d2d4a3ae5d5c540fe8fbdbd7c0d5cba4ffd846
3
+ metadata.gz: a134696a7fcfb8f38e55cff7ea6fd5e76a6b87f2
4
+ data.tar.gz: 1c3c9398c0e531d67e8c862c40c0dc14894466af
5
5
  SHA512:
6
- metadata.gz: a1e9dab5e33f38f0ffaadba500774002b150d84d84975e71aa8b69daddc6d067c07e82df61cfd0c613e51f8a1c2e6d7d66c25931df9530c3b3d381a61e1a0e32
7
- data.tar.gz: f84bf1d784121556b2f3337b52b8f7dec44fc633742f0a71070a71460468a09903cf35f7de279d283f42eecdf5db299440ce8e002d16d09ac8d6aa488668a620
6
+ metadata.gz: 79045453fb20134fed27c4960a4fac39f750676477033b341a9df37d38a77d2c7efcf0d1cb03faa60ff51a6cf6fef50a4f06947e6d267fd6a24308a2df863cff
7
+ data.tar.gz: 7a49e3220e145ab805f7e5d4b3a1935cfc244a7c8e0be1ab5b53d5883d3ee16b802bebeaf02be1144baf842e650e0463f812bd6904e1b69aad339c2dff81c69f
@@ -145,6 +145,21 @@ module Moto
145
145
  end
146
146
  private :generate_for_run_body
147
147
 
148
+ # Injects raise into test.run so it will report an error when executed
149
+ # @param [Moto::Test::Base] test An instance of test that is supposed to be modified
150
+ # @param [String] error_message Message to be attached to the raised exception
151
+ def inject_error_to_test(test, error_message)
152
+ class << test
153
+ attr_accessor :injected_error_message
154
+
155
+ def run
156
+ raise injected_error_message
157
+ end
158
+ end
159
+
160
+ test.injected_error_message = error_message
161
+ end
162
+
148
163
  end
149
164
  end
150
165
  end
@@ -1,3 +1,3 @@
1
1
  module Moto
2
- VERSION = '0.7.3'
2
+ VERSION = '0.7.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartek Wilczek
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-07-18 00:00:00.000000000 Z
14
+ date: 2016-07-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport