rspec-half_full 0.20140618 → 0.20160506

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ef25f42b006ae254b5c46e4351facd9aa5eb845
4
- data.tar.gz: 745af5e18c58b7c9b8ae9aaf72462bcb4c4aef2e
3
+ metadata.gz: e966df3af95b5b5d2bf15b9931161f9aa95f6106
4
+ data.tar.gz: 6816c6ccc0eafb460f168a1185e0d7de49aafc89
5
5
  SHA512:
6
- metadata.gz: c191db997a4c36bc3e4d5e74eb258cc5f6a7f566015343704ed258ad767b4a9bf32f806fa4e77025298ebee79a0a2bca018b05c78c77a7c243be68525fde36e8
7
- data.tar.gz: 79315db845815d65e119f390a3fcdc8872000e62175148a5bb0a5943d81ba33b5fe33bf9c0ba0a45b649c0e1f947134066bd352d287233281500c45a059e81fc
6
+ metadata.gz: e6058a111c25b96c5b76e6fd0ffaaa6d035f41a43764845dc94c11ec0c81812c144b28741b073e7ddb7cc57bf085deedd85315dfa7898e4a2a082dab5a2b9500
7
+ data.tar.gz: c688ac7d117a5eeaf93742078c981de7eedfefc1daea0725bcc16d907a880678e393565af1117ae2f0d2ee4ca90e289ed0e82645099b810eea7817489e8ab57c
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ task :default => :test
6
6
  task :test => :spec
7
7
 
8
8
  RSpec::Core::RakeTask.new(:spec) do |spec|
9
- spec.pattern = FileList['spec/**/*_spec.rb']
9
+ spec.pattern = FileList['spec/*_spec.rb']
10
10
  end
11
11
 
12
12
  spec = Gem::Specification.load('rspec-half_full.gemspec')
@@ -1,4 +1,5 @@
1
- require 'rspec/core/formatters/base_text_formatter'
1
+ require "rspec/core/formatters/base_text_formatter"
2
+ require "rspec/legacy_formatters"
2
3
 
3
4
  module RSpec
4
5
  class HalfFull < RSpec::Core::Formatters::BaseTextFormatter
@@ -28,7 +29,7 @@ module RSpec
28
29
  end
29
30
 
30
31
  def dump_failure_info(example)
31
- exception = example.execution_result[:exception]
32
+ exception = example.execution_result.exception
32
33
  exception_class_name = exception_class_name_for(exception)
33
34
  output.puts "#{long_padding}#{failure_color("Future Success:")} #{failure_color(read_failed_line(exception, example).strip)}"
34
35
  output.puts "#{long_padding}#{failure_color(exception_class_name)}:" unless exception_class_name =~ /RSpec/
@@ -1,5 +1,3 @@
1
- require "rspec/half_full"
2
-
3
1
  describe 'Something Awesome' do
4
2
  100.times do |i|
5
3
  case i % 10
@@ -7,11 +5,11 @@ describe 'Something Awesome' do
7
5
  it "knows the answer is 42s but question is still pending"
8
6
  when 1
9
7
  it "will be awesome soon" do
10
- (2+2).should == 5
8
+ expect(2+2).to eq(5)
11
9
  end
12
10
  else
13
11
  it "is already awesome" do
14
- (2+2).should == 4
12
+ expect(2+2).to eq(4)
15
13
  end
16
14
  end
17
15
  end
data/spec/meta_spec.rb ADDED
@@ -0,0 +1,10 @@
1
+ describe "Rspec half full" do
2
+ let(:example_project_path) { "#{__dir__}/example_project" }
3
+ it "is half full" do
4
+ results = Dir.chdir(example_project_path) do
5
+ `rspec`
6
+ end
7
+ expect(results).to_not include("fail")
8
+ expect(results).to include("100 examples, 80 already successful, 10 future successes, 10 pending")
9
+ end
10
+ end
metadata CHANGED
@@ -1,29 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-half_full
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.20140618'
4
+ version: '0.20160506'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Wegrzanowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-18 00:00:00.000000000 Z
11
+ date: 2016-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.14'
19
+ version: '3.4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.14'
26
+ version: '3.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec-legacy_formatters
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
27
55
  description: RSpec reporter for incorrigible optimists
28
56
  email: Tomasz.Wegrzanowski@gmail.com
29
57
  executables: []
@@ -31,10 +59,11 @@ extensions: []
31
59
  extra_rdoc_files:
32
60
  - README.md
33
61
  files:
34
- - lib/rspec/half_full.rb
35
- - Rakefile
36
- - spec/acceptance_spec.rb
37
62
  - README.md
63
+ - Rakefile
64
+ - lib/rspec/half_full.rb
65
+ - spec/example_project/spec/not_everything_done_spec.rb
66
+ - spec/meta_spec.rb
38
67
  homepage: https://github.com/taw/rspec-half_full
39
68
  licenses:
40
69
  - MIT
@@ -45,19 +74,21 @@ require_paths:
45
74
  - lib
46
75
  required_ruby_version: !ruby/object:Gem::Requirement
47
76
  requirements:
48
- - - '>='
77
+ - - ">="
49
78
  - !ruby/object:Gem::Version
50
79
  version: '0'
51
80
  required_rubygems_version: !ruby/object:Gem::Requirement
52
81
  requirements:
53
- - - '>='
82
+ - - ">="
54
83
  - !ruby/object:Gem::Version
55
84
  version: '0'
56
85
  requirements: []
57
86
  rubyforge_project:
58
- rubygems_version: 2.0.14
87
+ rubygems_version: 2.4.5
59
88
  signing_key:
60
89
  specification_version: 4
61
90
  summary: There are no failed specs
62
91
  test_files:
63
- - spec/acceptance_spec.rb
92
+ - spec/example_project/spec/not_everything_done_spec.rb
93
+ - spec/meta_spec.rb
94
+ has_rdoc: