rspec-pride 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +2 -2
  2. data/lib/rspec/pride.rb +13 -4
  3. metadata +5 -5
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- require 'rake'
1
+ require 'rubygems'
2
2
 
3
3
  task :default => :test
4
4
  task :test => :spec
@@ -21,5 +21,5 @@ Rake::GemPackageTask.new(spec) { }
21
21
  require 'rubygems/installer'
22
22
  desc 'Build the gem and install it'
23
23
  task :install => :gem do
24
- Gem::Installer.new(spec.file_name).install
24
+ Gem::Installer.new("pkg/#{spec.file_name}").install
25
25
  end
data/lib/rspec/pride.rb CHANGED
@@ -15,9 +15,19 @@ module RSpec
15
15
  output.print "\n"
16
16
  end
17
17
 
18
- def example_passed example; output.print pass ; end
19
- def example_failed example; output.print failure; end
20
- def example_pending example; output.print pending; end
18
+ def example_passed example
19
+ output.print pass
20
+ end
21
+
22
+ def example_failed example
23
+ super
24
+ output.print failure
25
+ end
26
+
27
+ def example_pending example
28
+ super
29
+ output.print pending
30
+ end
21
31
 
22
32
  def dump_summary duration, example_count, failure_count, pending_count
23
33
  icing = 'Fabulous tests'.split(//).map { |x| rainbow x }.join
@@ -25,7 +35,6 @@ module RSpec
25
35
  "#{example_count} examples, #{failure_count} failures, #{pending_count} pending\n\n"
26
36
  end
27
37
 
28
-
29
38
  private
30
39
 
31
40
  def pass ; rainbow '.' ; end
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.0.0
4
+ version: 2.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-20 00:00:00.000000000Z
12
+ date: 2012-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70306678499980 !ruby/object:Gem::Requirement
16
+ requirement: &70160610662560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '2.6'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70306678499980
24
+ version_requirements: *70160610662560
25
25
  description: Mimics the functionality of minitest/pride for RSpec2
26
26
  email: mrada@marketcircle.com
27
27
  executables: []
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  version: '0'
55
55
  requirements: []
56
56
  rubyforge_project:
57
- rubygems_version: 1.8.8
57
+ rubygems_version: 1.8.15
58
58
  signing_key:
59
59
  specification_version: 3
60
60
  summary: Take pride in your testing