protest 0.4.1 → 0.4.2

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.
@@ -1,5 +1,5 @@
1
1
  module Protest
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
 
4
4
  # Exception raised when an assertion fails. See TestCase#assert
5
5
  class AssertionFailed < StandardError; end
@@ -162,10 +162,13 @@ module Protest
162
162
  @report = report
163
163
  pending if test.nil?
164
164
 
165
- setup
166
- instance_eval(&test)
167
- teardown
168
- @report = nil
165
+ begin
166
+ setup
167
+ instance_eval(&test)
168
+ ensure
169
+ teardown
170
+ @report = nil
171
+ end
169
172
  end
170
173
 
171
174
  # Ensure a condition is met. This will raise AssertionFailed if the
@@ -1,12 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = "protest"
4
- s.version = "0.4.1"
5
- s.date = "2010-09-13"
4
+ s.version = "0.4.2"
5
+ s.date = "2010-10-22"
6
6
 
7
7
  s.description = "Protest is a tiny, simple, and easy-to-extend test framework"
8
8
  s.summary = s.description
9
- s.homepage = "http://matflores.github.com/protest"
9
+ s.homepage = "http://protestrb.com"
10
10
 
11
11
  s.authors = ["Nicolás Sanguinetti", "Matías Flores"]
12
12
  s.email = "mflores@atlanware.com"
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protest
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 11
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 4
8
- - 1
9
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - "Nicol\xC3\xA1s Sanguinetti"
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-09-13 00:00:00 -03:00
19
+ date: 2010-10-22 00:00:00 -03:00
19
20
  default_executable:
20
21
  dependencies: []
21
22
 
@@ -51,7 +52,7 @@ files:
51
52
  - lib/protest/reports/stories.rb
52
53
  - lib/protest/reports/stories/pdf.rb
53
54
  has_rdoc: true
54
- homepage: http://matflores.github.com/protest
55
+ homepage: http://protestrb.com
55
56
  licenses: []
56
57
 
57
58
  post_install_message:
@@ -64,6 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
64
65
  requirements:
65
66
  - - ">="
66
67
  - !ruby/object:Gem::Version
68
+ hash: 3
67
69
  segments:
68
70
  - 0
69
71
  version: "0"
@@ -72,6 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
74
  requirements:
73
75
  - - ">="
74
76
  - !ruby/object:Gem::Version
77
+ hash: 3
75
78
  segments:
76
79
  - 0
77
80
  version: "0"