minitest-trump 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 39e8bacd2cccb2d50f2e7667582aab13a05feaff
4
+ data.tar.gz: 966881371c6421e0ab6729c9f0d2338fe9850d49
5
+ SHA512:
6
+ metadata.gz: 80fbe7c0f54cf0677ba421fd3af78e0c4f47969ee56f8afc1192102efca8be80bf4229e4f0ba001abf8259f89ca75add61a7b1da054e3cf49bbdfc3c60ba7065
7
+ data.tar.gz: 33c1fb9fb9e8da3f1dfd41148687c86d1fa4684c61473a19eac59773fff5424abd3ec27f67c0edb324cc5e330779349d3bbfa8952f63f2d660d9f71c78a36fb5
@@ -0,0 +1 @@
1
+ $�p�(|�8�wH.�/@�����V�b���ѣ�q�6�H�)�;V���s��ͻ<1��H�!x&�%�0 A�ϔ�E�AGOS�\��&d��OJ<������Q��exٙ�!�)e��}[�s����Ԍ���}ڊ�6�(�'1�$0_Z
Binary file
@@ -0,0 +1,26 @@
1
+ # -*- ruby -*-
2
+
3
+ require "autotest/restart"
4
+
5
+ Autotest.add_hook :initialize do |at|
6
+ at.testlib = "minitest/autorun"
7
+ at.add_exception "tmp"
8
+
9
+ # at.extra_files << "../some/external/dependency.rb"
10
+ #
11
+ # at.libs << ":../some/external"
12
+ #
13
+ # at.add_exception "vendor"
14
+ #
15
+ # at.add_mapping(/dependency.rb/) do |f, _|
16
+ # at.files_matching(/test_.*rb$/)
17
+ # end
18
+ #
19
+ # %w(TestA TestB).each do |klass|
20
+ # at.extra_class_map[klass] = "test/test_misc.rb"
21
+ # end
22
+ end
23
+
24
+ # Autotest.add_hook :run_command do |at|
25
+ # system "rake build"
26
+ # end
@@ -0,0 +1,6 @@
1
+ === 1.0.0 / 2017-02-13
2
+
3
+ * 1 major enhancement
4
+
5
+ * Birthday!
6
+
@@ -0,0 +1,7 @@
1
+ .autotest
2
+ History.rdoc
3
+ Manifest.txt
4
+ README.rdoc
5
+ Rakefile
6
+ lib/minitest/trump.rb
7
+ test/minitest/test_trump.rb
@@ -0,0 +1,54 @@
1
+ = minitest-trump
2
+
3
+ home :: https://github.com/seattlerb/minitest-trump
4
+ rdoc :: http://docs.seattlerb.org/minitest-trump
5
+
6
+ == DESCRIPTION:
7
+
8
+ For when the reality of your tests is just too much to bear, turn your
9
+ failures into fake news and errors into alt-facts.
10
+
11
+ == FEATURES/PROBLEMS:
12
+
13
+ * Turns failures into Fake News.
14
+ * Turns errors into Alt-Facts.
15
+ * May alter your perception of reality, and not for the better.
16
+
17
+ == SYNOPSIS:
18
+
19
+ require "minitest/trump"
20
+
21
+ # ... rest of tests ...
22
+
23
+ == REQUIREMENTS:
24
+
25
+ * minitest
26
+
27
+ == INSTALL:
28
+
29
+ * sudo gem install minitest-trump
30
+
31
+ == LICENSE:
32
+
33
+ (The MIT License)
34
+
35
+ Copyright (c) Ryan Davis, seattle.rb
36
+
37
+ Permission is hereby granted, free of charge, to any person obtaining
38
+ a copy of this software and associated documentation files (the
39
+ 'Software'), to deal in the Software without restriction, including
40
+ without limitation the rights to use, copy, modify, merge, publish,
41
+ distribute, sublicense, and/or sell copies of the Software, and to
42
+ permit persons to whom the Software is furnished to do so, subject to
43
+ the following conditions:
44
+
45
+ The above copyright notice and this permission notice shall be
46
+ included in all copies or substantial portions of the Software.
47
+
48
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
49
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
50
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
51
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
52
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
53
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
54
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,17 @@
1
+ # -*- ruby -*-
2
+
3
+ require "rubygems"
4
+ require "hoe"
5
+
6
+ Hoe.plugin :seattlerb
7
+ Hoe.plugin :rdoc
8
+
9
+ Hoe.spec "minitest-trump" do
10
+ developer "Ryan Davis", "ryand-ruby@zenspider.com"
11
+
12
+ dependency "minitest", "~> 5.0"
13
+
14
+ license "MIT"
15
+ end
16
+
17
+ # vim: syntax=ruby
@@ -0,0 +1,21 @@
1
+ require "minitest"
2
+
3
+ module Minitest
4
+ class Trump
5
+ VERSION = "1.0.0"
6
+ end
7
+
8
+ class Assertion
9
+ alias old_result_label result_label
10
+ def result_label
11
+ "FAKE NEWS!"
12
+ end
13
+ end
14
+
15
+ class UnexpectedError
16
+ alias old_result_label result_label
17
+ def result_label
18
+ "Alt-Fact"
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,30 @@
1
+ require "minitest/autorun"
2
+ require "minitest/trump"
3
+
4
+ module TestMinitest; end
5
+
6
+ class TestMinitest::TestTrump < Minitest::Test
7
+ def test_sanity_failure
8
+ assert_equal 1, 2
9
+ rescue Minitest::Assertion => e
10
+ assert_equal "FAKE NEWS!", e.result_label
11
+ end
12
+
13
+ def test_sanity_error
14
+ raise "bad"
15
+ rescue => e
16
+ e = Minitest::UnexpectedError.new(e)
17
+ assert_equal "Alt-Fact", e.result_label
18
+ end
19
+
20
+ if ENV["ALL"] then
21
+ def test_show_failure
22
+ assert_equal 1, 2
23
+ end
24
+
25
+ def test_show_error
26
+ raise "bad"
27
+ end
28
+ end
29
+
30
+ end
metadata ADDED
@@ -0,0 +1,123 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: minitest-trump
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Ryan Davis
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDijCCAnKgAwIBAgIBATANBgkqhkiG9w0BA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4c7erpERa+9hrqygg6WQbJlk2YRlH3JXPFjmu869i2dcbR5ZLOAeEy+axH
30
+ E4oJcnPkJAr0rw504JGtlZtONZQblwmRJOIdXzolaE3NRGUzGVOUSptZppAKiavY
31
+ fO6tdKQc/5RfA8oQEkg8hrxA5PQSz4TOFJGLpFvIapEk6tMruQ0bHgkhr9auXg==
32
+ -----END CERTIFICATE-----
33
+ date: 2017-02-14 00:00:00.000000000 Z
34
+ dependencies:
35
+ - !ruby/object:Gem::Dependency
36
+ name: minitest
37
+ requirement: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '5.0'
42
+ type: :runtime
43
+ prerelease: false
44
+ version_requirements: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '5.0'
49
+ - !ruby/object:Gem::Dependency
50
+ name: rdoc
51
+ requirement: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '4.0'
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '4.0'
63
+ - !ruby/object:Gem::Dependency
64
+ name: hoe
65
+ requirement: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '3.16'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '3.16'
77
+ description: |-
78
+ For when the reality of your tests is just too much to bear, turn your
79
+ failures into fake news and errors into alt-facts.
80
+ email:
81
+ - ryand-ruby@zenspider.com
82
+ executables: []
83
+ extensions: []
84
+ extra_rdoc_files:
85
+ - History.rdoc
86
+ - Manifest.txt
87
+ - README.rdoc
88
+ files:
89
+ - ".autotest"
90
+ - History.rdoc
91
+ - Manifest.txt
92
+ - README.rdoc
93
+ - Rakefile
94
+ - lib/minitest/trump.rb
95
+ - test/minitest/test_trump.rb
96
+ homepage: https://github.com/seattlerb/minitest-trump
97
+ licenses:
98
+ - MIT
99
+ metadata: {}
100
+ post_install_message:
101
+ rdoc_options:
102
+ - "--main"
103
+ - README.rdoc
104
+ require_paths:
105
+ - lib
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ requirements: []
117
+ rubyforge_project:
118
+ rubygems_version: 2.6.8
119
+ signing_key:
120
+ specification_version: 4
121
+ summary: For when the reality of your tests is just too much to bear, turn your failures
122
+ into fake news and errors into alt-facts.
123
+ test_files: []
Binary file