rspec-longrun 0.1.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,3 +4,4 @@ env:
4
4
  - RSPEC_VERSION="~> 2.11.0"
5
5
  - RSPEC_VERSION="~> 2.12.0"
6
6
  - RSPEC_VERSION="~> 2.13.0"
7
+ - RSPEC_VERSION="~> 2.14.0"
@@ -2,11 +2,14 @@ require 'rspec/core'
2
2
  require 'rspec/core/formatters/base_formatter'
3
3
 
4
4
  # extend rspec-core with support for "steps"
5
-
6
5
  module RSpec::Core
7
6
 
8
7
  class Reporter
9
8
 
9
+ if defined?(NOTIFICATIONS)
10
+ NOTIFICATIONS.push("step_started", "step_finished")
11
+ end
12
+
10
13
  def step_started(description)
11
14
  notify :step_started, description
12
15
  end
@@ -17,12 +20,16 @@ module RSpec::Core
17
20
 
18
21
  end
19
22
 
20
- class Formatters::BaseFormatter
23
+ unless defined?(Reporter::NOTIFCATIONS)
21
24
 
22
- def step_started(description)
23
- end
25
+ class Formatters::BaseFormatter
26
+
27
+ def step_started(description)
28
+ end
29
+
30
+ def step_finished(description)
31
+ end
24
32
 
25
- def step_finished(description)
26
33
  end
27
34
 
28
35
  end
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module Longrun
3
- VERSION = "0.1.2"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -5,6 +5,7 @@ describe RSpec::Longrun::Formatter do
5
5
 
6
6
  let(:output_buffer) { StringIO.new }
7
7
  let(:formatter) { described_class.new(output_buffer) }
8
+ let(:reporter) { RSpec::Core::Reporter.new(formatter) }
8
9
 
9
10
  def undent(raw)
10
11
  if raw =~ /\A( +)/
@@ -33,7 +34,7 @@ describe RSpec::Longrun::Formatter do
33
34
 
34
35
  before do
35
36
  formatter.extend(NoColor)
36
- suite.run(formatter)
37
+ suite.run(reporter)
37
38
  end
38
39
 
39
40
  context "for nested example groups" do
@@ -42,9 +43,11 @@ describe RSpec::Longrun::Formatter do
42
43
  RSpec::Core::ExampleGroup.describe("foo") do
43
44
  describe "bar" do
44
45
  describe "baz" do
46
+ it "bleeds"
45
47
  end
46
48
  end
47
49
  describe "qux" do
50
+ it "hurts"
48
51
  end
49
52
  end
50
53
  end
@@ -53,9 +56,13 @@ describe RSpec::Longrun::Formatter do
53
56
  normalized_output.should eql(undent(<<-EOF))
54
57
  foo {
55
58
  bar {
56
- baz (N.NNs)
59
+ baz {
60
+ bleeds PENDING: Not yet implemented (N.NNs)
61
+ } (N.NNs)
62
+ } (N.NNs)
63
+ qux {
64
+ hurts PENDING: Not yet implemented (N.NNs)
57
65
  } (N.NNs)
58
- qux (N.NNs)
59
66
  } (N.NNs)
60
67
  EOF
61
68
  end
metadata CHANGED
@@ -1,29 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-longrun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 1.0.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Mike Williams
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-02-28 00:00:00.000000000 Z
12
+ date: 2014-03-21 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
- prerelease: false
15
- version_requirements: !ruby/object:Gem::Requirement
15
+ name: rspec-core
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: 2.10.0
20
- name: rspec-core
21
- requirement: !ruby/object:Gem::Requirement
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
22
26
  requirements:
23
27
  - - ! '>='
24
28
  - !ruby/object:Gem::Version
25
29
  version: 2.10.0
26
- type: :runtime
27
30
  description:
28
31
  email:
29
32
  - mdub@dogbiscuit.org
@@ -48,26 +51,33 @@ files:
48
51
  - spec/rspec/longrun/formatter_spec.rb
49
52
  homepage: http://github.com/mdub/rspec-longrun
50
53
  licenses: []
51
- metadata: {}
52
54
  post_install_message:
53
55
  rdoc_options: []
54
56
  require_paths:
55
57
  - lib
56
58
  required_ruby_version: !ruby/object:Gem::Requirement
59
+ none: false
57
60
  requirements:
58
61
  - - ! '>='
59
62
  - !ruby/object:Gem::Version
60
63
  version: '0'
64
+ segments:
65
+ - 0
66
+ hash: 1103834726053272841
61
67
  required_rubygems_version: !ruby/object:Gem::Requirement
68
+ none: false
62
69
  requirements:
63
70
  - - ! '>='
64
71
  - !ruby/object:Gem::Version
65
72
  version: '0'
73
+ segments:
74
+ - 0
75
+ hash: 1103834726053272841
66
76
  requirements: []
67
77
  rubyforge_project:
68
- rubygems_version: 2.0.0
78
+ rubygems_version: 1.8.23
69
79
  signing_key:
70
- specification_version: 4
80
+ specification_version: 3
71
81
  summary: An RSpec formatter for long-running specs.
72
82
  test_files:
73
83
  - spec/rspec/longrun/formatter_spec.rb
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NjhlOWMwMzViMGU4M2UxMjBmOWI4YTZkYTM3MGI5OTljNTI0OGJmMw==
5
- data.tar.gz: !binary |-
6
- OWY4OTg0MmNlYTAxZWE4OGU4M2JlNzFlOTFhY2EzYTMzMjBlNDJmOQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MzkyNTYzNjE0ZWZmZDQzMTE1OGIzNGQ0Y2M5Nzg5N2Q0MTdmZWMzZWM2ZDdm
10
- NGUwZDE4MDAzZDJjZWE0MzE4ZjdmMjMwNDU4NzA1ZWE2ZTg1YjdiOWQ3ZGYy
11
- MDZlOTlhMzhiMGQ5Mzg1OGVlZGU4NjlmNWY1NzliMGE4YzEzODI=
12
- data.tar.gz: !binary |-
13
- NGI3YmMwNjI0ZjU0Mzk3OWViNTU0MDA0MTlhNjE1MDczNTE1MTliZTQ0MDEy
14
- OGE1OGYyNDQ3OTZmODk0MmNhM2E1N2MyMWQwNzVmNzNhNDQ2ZWNhYzgzYzhl
15
- ZGE5NGRjYmFhZjY3MDc1ODdiMTVkNDg3Y2U0ZTQ0ZTlkMjljYzM=