minitest-utils 0.1.0 → 0.1.1
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/bin/console +14 -0
- data/bin/rake +16 -0
- data/bin/setup +7 -0
- data/lib/minitest/utils/reporter.rb +3 -3
- data/lib/minitest/utils/version.rb +1 -1
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53f5939edeb86d8fc6b8c73a994a6a71c489ee6f
|
4
|
+
data.tar.gz: 7fb39036503556bb6736fdde724c253b28059b0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f8950291223aafaaad93d73c5561467dc81dfc45e4d090c3657da1d628fe2e9ece5517c323100d4236dd6080370d5a397fe471d026c25bac44ab73d34740f30
|
7
|
+
data.tar.gz: 109bd388af199abc5176793cf89d1d963fce8ef59eaccad5db0e319e4694e76d28d95435bdb07257059c4c94998b5f0550ecbd900cfba9daddc1bcfdfa606779
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "minitest/utils"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/rake
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'rake' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('rake', 'rake')
|
data/bin/setup
ADDED
@@ -55,7 +55,7 @@ module Minitest
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def indent(text)
|
58
|
-
text.gsub(/^/, '
|
58
|
+
text.gsub(/^/, ' ')
|
59
59
|
end
|
60
60
|
|
61
61
|
def display_failing(result, index)
|
@@ -64,7 +64,7 @@ module Minitest
|
|
64
64
|
message = message.lines.tap(&:pop).join.chomp if result.error?
|
65
65
|
|
66
66
|
str = "\n\n"
|
67
|
-
str << color("
|
67
|
+
str << color("%4d) %s" % [index, result_name(result.name)])
|
68
68
|
str << "\n" << color(indent(message), :red)
|
69
69
|
str << "\n" << color(backtrace, :blue)
|
70
70
|
io.print str
|
@@ -73,7 +73,7 @@ module Minitest
|
|
73
73
|
def display_skipped(result, index)
|
74
74
|
location = location(result.failure.location)
|
75
75
|
str = "\n\n"
|
76
|
-
str << color("
|
76
|
+
str << color("%4d) %s [SKIPPED]" % [index, result_name(result.name)], :yellow)
|
77
77
|
str << "\n" << indent(color(location, :yellow))
|
78
78
|
io.print str
|
79
79
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
@@ -77,6 +77,9 @@ files:
|
|
77
77
|
- Gemfile
|
78
78
|
- README.md
|
79
79
|
- Rakefile
|
80
|
+
- bin/console
|
81
|
+
- bin/rake
|
82
|
+
- bin/setup
|
80
83
|
- lib/minitest/utils.rb
|
81
84
|
- lib/minitest/utils/rails.rb
|
82
85
|
- lib/minitest/utils/rails/capybara.rb
|