rspec-pride 2.1.0 → 2.2.0
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.
- data/Rakefile +1 -2
- data/lib/rspec/pride.rb +1 -0
- data/spec/pride_spec.rb +14 -2
- metadata +17 -6
data/Rakefile
CHANGED
@@ -3,14 +3,13 @@ require 'rubygems'
|
|
3
3
|
task :default => :test
|
4
4
|
task :test => :spec
|
5
5
|
|
6
|
-
if RUBY_ENGINE == 'macruby'
|
6
|
+
if RUBY_ENGINE == 'macruby'
|
7
7
|
require 'rake/compiletask'
|
8
8
|
Rake::CompileTask.new
|
9
9
|
end
|
10
10
|
|
11
11
|
require 'rspec/core/rake_task'
|
12
12
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
13
|
-
spec.skip_bundler = true
|
14
13
|
spec.pattern = FileList['spec/**/*_spec.rb']
|
15
14
|
end
|
16
15
|
|
data/lib/rspec/pride.rb
CHANGED
@@ -30,6 +30,7 @@ module RSpec
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def dump_summary duration, example_count, failure_count, pending_count
|
33
|
+
dump_profile if profile_examples? && failure_count == 0
|
33
34
|
icing = 'Fabulous tests'.split(//).map { |x| rainbow x }.join
|
34
35
|
output.print "\n\n#{icing} in #{duration} seconds\n" +
|
35
36
|
"#{example_count} examples, #{failure_count} failures, #{pending_count} pending\n\n"
|
data/spec/pride_spec.rb
CHANGED
@@ -2,6 +2,12 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
2
2
|
require 'rspec/pride'
|
3
3
|
require 'stringio'
|
4
4
|
|
5
|
+
RSpec.configure do |c|
|
6
|
+
if ENV['TEST_PROFILING']
|
7
|
+
c.profile_examples = true
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
5
11
|
describe 'Some class' do
|
6
12
|
|
7
13
|
50.times do |n|
|
@@ -12,8 +18,14 @@ describe 'Some class' do
|
|
12
18
|
|
13
19
|
it 'should be pending'
|
14
20
|
|
15
|
-
|
16
|
-
|
21
|
+
if ENV['TEST_PROFILING']
|
22
|
+
it 'should be really slow' do
|
23
|
+
sleep 2
|
24
|
+
end
|
25
|
+
else
|
26
|
+
it 'should fail' do
|
27
|
+
1.should == 0
|
28
|
+
end
|
17
29
|
end
|
18
30
|
|
19
31
|
10.times do |n|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-pride
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,19 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '2.
|
21
|
+
version: '2.10'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.10'
|
25
30
|
description: Mimics the functionality of minitest/pride for RSpec2
|
26
31
|
email: mrada@marketcircle.com
|
27
32
|
executables: []
|
@@ -46,15 +51,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
46
51
|
- - ! '>='
|
47
52
|
- !ruby/object:Gem::Version
|
48
53
|
version: '0'
|
54
|
+
segments:
|
55
|
+
- 0
|
56
|
+
hash: -2415205072117540841
|
49
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
58
|
none: false
|
51
59
|
requirements:
|
52
60
|
- - ! '>='
|
53
61
|
- !ruby/object:Gem::Version
|
54
62
|
version: '0'
|
63
|
+
segments:
|
64
|
+
- 0
|
65
|
+
hash: -2415205072117540841
|
55
66
|
requirements: []
|
56
67
|
rubyforge_project:
|
57
|
-
rubygems_version: 1.8.
|
68
|
+
rubygems_version: 1.8.24
|
58
69
|
signing_key:
|
59
70
|
specification_version: 3
|
60
71
|
summary: Take pride in your testing
|