justified 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,6 @@
1
1
  require 'minitest/autorun'
2
+ require 'minitest/reporters'
3
+ MiniTest::Reporters.use!
2
4
 
3
5
  require 'pp'
4
6
  require 'justified/standard_error'
@@ -37,7 +39,7 @@ describe 'justified' do
37
39
  it { error.cause.message.must_equal 'bad' }
38
40
  it { error.backtrace.must_include 'caused by: (AnError) bad' }
39
41
  it do
40
- assert error.backtrace.any? { |l| l =~ %r"spec/justified\.rb:\d+:in `bad_code'" }
42
+ assert error.backtrace.any? { |l| l =~ %r"test/justified_test\.rb:\d+:in `bad_code'" }
41
43
  end
42
44
  end
43
45
 
@@ -51,7 +53,7 @@ describe 'justified' do
51
53
  it { error2.backtrace.wont_include 'caused by: (AnError) bad' }
52
54
  it do
53
55
  refute error2.backtrace.
54
- any? { |l| l =~ %r"spec/justified\.rb:15:in `bad_code'" }
56
+ any? { |l| l =~ %r"test/justified_test\.rb:15:in `bad_code'" }
55
57
  end
56
58
  end
57
59
 
@@ -66,7 +68,7 @@ describe 'justified' do
66
68
  it { error2.backtrace.must_include 'caused by: (RuntimeError) other' }
67
69
  it do
68
70
  assert error2.backtrace.any? do |l|
69
- l =~ %r"spec/justified\.rb:\d+:in `block \(\d levels\)'"
71
+ l =~ %r"test/justified_test\.rb:\d+:in `block \(\d levels\)'"
70
72
  end
71
73
  end
72
74
  end
@@ -84,7 +86,7 @@ describe 'justified' do
84
86
  it { error.backtrace.must_include 'caused by: (RuntimeError) other' }
85
87
  it do
86
88
  assert error.backtrace.any? do |l|
87
- l =~ %r"spec/justified\.rb:\d+:in `block \(\d levels\)'"
89
+ l =~ %r"test/justified_test\.rb:\d+:in `block \(\d levels\)'"
88
90
  end
89
91
  end
90
92
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: justified
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: minitest-reporters
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
30
46
  - !ruby/object:Gem::Dependency
31
47
  name: pry
32
48
  requirement: !ruby/object:Gem::Requirement
@@ -103,7 +119,7 @@ files:
103
119
  - lib/justified/standard_error.rb
104
120
  - lib/justified.rb
105
121
  - MIT-LICENSE
106
- - spec/justified.rb
122
+ - test/justified_test.rb
107
123
  homepage: https://github.com/pitr-ch/justified
108
124
  licenses: []
109
125
  post_install_message:
@@ -129,5 +145,5 @@ signing_key:
129
145
  specification_version: 3
130
146
  summary: Exception causes
131
147
  test_files:
132
- - spec/justified.rb
148
+ - test/justified_test.rb
133
149
  has_rdoc: