moto 0.7.3 → 0.7.4
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 +4 -4
- data/lib/runner/test_generator.rb +15 -0
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a134696a7fcfb8f38e55cff7ea6fd5e76a6b87f2
|
|
4
|
+
data.tar.gz: 1c3c9398c0e531d67e8c862c40c0dc14894466af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/version.rb
CHANGED
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.
|
|
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-
|
|
14
|
+
date: 2016-07-20 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: activesupport
|