rspec 1.0.1 → 1.0.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.
- data/CHANGES +3 -0
- data/EXAMPLES.rd +1 -1
- data/lib/spec/matchers.rb +10 -2
- data/lib/spec/version.rb +3 -3
- metadata +39 -39
data/CHANGES
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
= RSpec Changelog
|
2
2
|
|
3
|
+
== Version 1.0.2
|
4
|
+
This is just to align the version numbers in rspec and rspec_on_rails.
|
5
|
+
|
3
6
|
== Version 1.0.1
|
4
7
|
This is a maintenance release with mostly cleaning up, and one minor enhancement -
|
5
8
|
Modules are automatically included when described directly.
|
data/EXAMPLES.rd
CHANGED
data/lib/spec/matchers.rb
CHANGED
@@ -61,9 +61,9 @@ module Spec
|
|
61
61
|
# You can use this feature to invoke any predicate that begins with "has_", whether it is
|
62
62
|
# part of the Ruby libraries (like +Hash#has_key?+) or a method you wrote on your own class.
|
63
63
|
#
|
64
|
-
# == Custom
|
64
|
+
# == Custom Expectation Matchers
|
65
65
|
#
|
66
|
-
# When you find that none of the stock
|
66
|
+
# When you find that none of the stock Expectation Matchers provide a natural
|
67
67
|
# feeling expectation, you can very easily write your own.
|
68
68
|
#
|
69
69
|
# For example, imagine that you are writing a game in which players can
|
@@ -122,6 +122,14 @@ module Spec
|
|
122
122
|
# include CustomGameMatchers
|
123
123
|
# ...
|
124
124
|
# end
|
125
|
+
#
|
126
|
+
# or you can include in globally in a spec_helper.rb file <tt>require</tt>d
|
127
|
+
# from your spec file(s):
|
128
|
+
#
|
129
|
+
# Spec::Runner.configure do |config|
|
130
|
+
# config.include(CustomGameMatchers)
|
131
|
+
# end
|
132
|
+
#
|
125
133
|
module Matchers
|
126
134
|
module ModuleMethods
|
127
135
|
def description_generated(callback)
|
data/lib/spec/version.rb
CHANGED
@@ -3,11 +3,11 @@ module Spec
|
|
3
3
|
unless defined? MAJOR
|
4
4
|
MAJOR = 1
|
5
5
|
MINOR = 0
|
6
|
-
TINY =
|
6
|
+
TINY = 2
|
7
7
|
RELEASE_CANDIDATE = nil
|
8
8
|
|
9
|
-
# RANDOM_TOKEN: 0.
|
10
|
-
REV = "$LastChangedRevision:
|
9
|
+
# RANDOM_TOKEN: 0.378125753552199
|
10
|
+
REV = "$LastChangedRevision: 2008 $".match(/LastChangedRevision: (\d+)/)[1]
|
11
11
|
|
12
12
|
STRING = [MAJOR, MINOR, TINY].join('.')
|
13
13
|
TAG = "REL_#{[MAJOR, MINOR, TINY, RELEASE_CANDIDATE].compact.join('_')}".upcase.gsub(/\.|-/, '_')
|
metadata
CHANGED
@@ -3,9 +3,9 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rspec
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2007-05-
|
8
|
-
summary: RSpec-1.0.
|
6
|
+
version: 1.0.2
|
7
|
+
date: 2007-05-23 00:00:00 -05:00
|
8
|
+
summary: RSpec-1.0.2 (r2008) - BDD for Ruby http://rspec.rubyforge.org/
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: rspec-devel@rubyforge.org
|
@@ -35,19 +35,9 @@ files:
|
|
35
35
|
- Rakefile
|
36
36
|
- README
|
37
37
|
- UPGRADE
|
38
|
-
- lib/autotest.rb
|
39
|
-
- lib/spec.rb
|
40
38
|
- lib/autotest/discover.rb
|
41
39
|
- lib/autotest/rspec.rb
|
42
|
-
- lib/
|
43
|
-
- lib/spec/expectations.rb
|
44
|
-
- lib/spec/extensions.rb
|
45
|
-
- lib/spec/matchers.rb
|
46
|
-
- lib/spec/mocks.rb
|
47
|
-
- lib/spec/runner.rb
|
48
|
-
- lib/spec/test_case_adapter.rb
|
49
|
-
- lib/spec/translator.rb
|
50
|
-
- lib/spec/version.rb
|
40
|
+
- lib/autotest.rb
|
51
41
|
- lib/spec/dsl/behaviour.rb
|
52
42
|
- lib/spec/dsl/behaviour_callbacks.rb
|
53
43
|
- lib/spec/dsl/behaviour_eval.rb
|
@@ -58,13 +48,16 @@ files:
|
|
58
48
|
- lib/spec/dsl/example.rb
|
59
49
|
- lib/spec/dsl/example_matcher.rb
|
60
50
|
- lib/spec/dsl/example_should_raise_handler.rb
|
61
|
-
- lib/spec/
|
62
|
-
- lib/spec/expectations/extensions.rb
|
63
|
-
- lib/spec/expectations/handler.rb
|
51
|
+
- lib/spec/dsl.rb
|
64
52
|
- lib/spec/expectations/differs/default.rb
|
53
|
+
- lib/spec/expectations/errors.rb
|
65
54
|
- lib/spec/expectations/extensions/object.rb
|
66
55
|
- lib/spec/expectations/extensions/string_and_symbol.rb
|
56
|
+
- lib/spec/expectations/extensions.rb
|
57
|
+
- lib/spec/expectations/handler.rb
|
58
|
+
- lib/spec/expectations.rb
|
67
59
|
- lib/spec/extensions/object.rb
|
60
|
+
- lib/spec/extensions.rb
|
68
61
|
- lib/spec/matchers/be.rb
|
69
62
|
- lib/spec/matchers/be_close.rb
|
70
63
|
- lib/spec/matchers/change.rb
|
@@ -79,10 +72,12 @@ files:
|
|
79
72
|
- lib/spec/matchers/respond_to.rb
|
80
73
|
- lib/spec/matchers/satisfy.rb
|
81
74
|
- lib/spec/matchers/throw_symbol.rb
|
75
|
+
- lib/spec/matchers.rb
|
82
76
|
- lib/spec/mocks/argument_constraint_matchers.rb
|
83
77
|
- lib/spec/mocks/argument_expectation.rb
|
84
78
|
- lib/spec/mocks/error_generator.rb
|
85
79
|
- lib/spec/mocks/errors.rb
|
80
|
+
- lib/spec/mocks/extensions/object.rb
|
86
81
|
- lib/spec/mocks/message_expectation.rb
|
87
82
|
- lib/spec/mocks/methods.rb
|
88
83
|
- lib/spec/mocks/mock.rb
|
@@ -90,20 +85,13 @@ files:
|
|
90
85
|
- lib/spec/mocks/proxy.rb
|
91
86
|
- lib/spec/mocks/space.rb
|
92
87
|
- lib/spec/mocks/spec_methods.rb
|
93
|
-
- lib/spec/mocks
|
88
|
+
- lib/spec/mocks.rb
|
94
89
|
- lib/spec/rake/spectask.rb
|
95
90
|
- lib/spec/rake/verify_rcov.rb
|
96
91
|
- lib/spec/runner/backtrace_tweaker.rb
|
97
92
|
- lib/spec/runner/behaviour_runner.rb
|
98
93
|
- lib/spec/runner/command_line.rb
|
99
94
|
- lib/spec/runner/drb_command_line.rb
|
100
|
-
- lib/spec/runner/formatter.rb
|
101
|
-
- lib/spec/runner/heckle_runner.rb
|
102
|
-
- lib/spec/runner/heckle_runner_unsupported.rb
|
103
|
-
- lib/spec/runner/option_parser.rb
|
104
|
-
- lib/spec/runner/options.rb
|
105
|
-
- lib/spec/runner/reporter.rb
|
106
|
-
- lib/spec/runner/spec_parser.rb
|
107
95
|
- lib/spec/runner/extensions/kernel.rb
|
108
96
|
- lib/spec/runner/extensions/object.rb
|
109
97
|
- lib/spec/runner/formatter/base_formatter.rb
|
@@ -115,9 +103,18 @@ files:
|
|
115
103
|
- lib/spec/runner/formatter/rdoc_formatter.rb
|
116
104
|
- lib/spec/runner/formatter/snippet_extractor.rb
|
117
105
|
- lib/spec/runner/formatter/specdoc_formatter.rb
|
118
|
-
- spec/
|
119
|
-
-
|
120
|
-
-
|
106
|
+
- lib/spec/runner/formatter.rb
|
107
|
+
- lib/spec/runner/heckle_runner.rb
|
108
|
+
- lib/spec/runner/heckle_runner_unsupported.rb
|
109
|
+
- lib/spec/runner/option_parser.rb
|
110
|
+
- lib/spec/runner/options.rb
|
111
|
+
- lib/spec/runner/reporter.rb
|
112
|
+
- lib/spec/runner/spec_parser.rb
|
113
|
+
- lib/spec/runner.rb
|
114
|
+
- lib/spec/test_case_adapter.rb
|
115
|
+
- lib/spec/translator.rb
|
116
|
+
- lib/spec/version.rb
|
117
|
+
- lib/spec.rb
|
121
118
|
- spec/spec/dsl/behaviour_eval_spec.rb
|
122
119
|
- spec/spec/dsl/behaviour_factory_spec.rb
|
123
120
|
- spec/spec/dsl/behaviour_spec.rb
|
@@ -129,9 +126,9 @@ files:
|
|
129
126
|
- spec/spec/dsl/example_should_raise_spec.rb
|
130
127
|
- spec/spec/dsl/predicate_matcher_spec.rb
|
131
128
|
- spec/spec/dsl/shared_behaviour_spec.rb
|
132
|
-
- spec/spec/expectations/fail_with_spec.rb
|
133
129
|
- spec/spec/expectations/differs/default_spec.rb
|
134
130
|
- spec/spec/expectations/extensions/object_spec.rb
|
131
|
+
- spec/spec/expectations/fail_with_spec.rb
|
135
132
|
- spec/spec/matchers/be_close_spec.rb
|
136
133
|
- spec/spec/matchers/be_spec.rb
|
137
134
|
- spec/spec/matchers/change_spec.rb
|
@@ -180,16 +177,6 @@ files:
|
|
180
177
|
- spec/spec/runner/context_matching_spec.rb
|
181
178
|
- spec/spec/runner/drb_command_line_spec.rb
|
182
179
|
- spec/spec/runner/execution_context_spec.rb
|
183
|
-
- spec/spec/runner/heckle_runner_spec.rb
|
184
|
-
- spec/spec/runner/heckler_spec.rb
|
185
|
-
- spec/spec/runner/noisy_backtrace_tweaker_spec.rb
|
186
|
-
- spec/spec/runner/object_ext_spec.rb
|
187
|
-
- spec/spec/runner/option_parser_spec.rb
|
188
|
-
- spec/spec/runner/options_spec.rb
|
189
|
-
- spec/spec/runner/quiet_backtrace_tweaker_spec.rb
|
190
|
-
- spec/spec/runner/reporter_spec.rb
|
191
|
-
- spec/spec/runner/spec_matcher_spec.rb
|
192
|
-
- spec/spec/runner/spec_parser_spec.rb
|
193
180
|
- spec/spec/runner/extensions/kernel_spec.rb
|
194
181
|
- spec/spec/runner/formatter/failing_behaviours_formatter_spec.rb
|
195
182
|
- spec/spec/runner/formatter/failing_examples_formatter_spec.rb
|
@@ -202,6 +189,19 @@ files:
|
|
202
189
|
- spec/spec/runner/formatter/snippet_extractor_spec.rb
|
203
190
|
- spec/spec/runner/formatter/specdoc_formatter_dry_run_spec.rb
|
204
191
|
- spec/spec/runner/formatter/specdoc_formatter_spec.rb
|
192
|
+
- spec/spec/runner/heckle_runner_spec.rb
|
193
|
+
- spec/spec/runner/heckler_spec.rb
|
194
|
+
- spec/spec/runner/noisy_backtrace_tweaker_spec.rb
|
195
|
+
- spec/spec/runner/object_ext_spec.rb
|
196
|
+
- spec/spec/runner/option_parser_spec.rb
|
197
|
+
- spec/spec/runner/options_spec.rb
|
198
|
+
- spec/spec/runner/quiet_backtrace_tweaker_spec.rb
|
199
|
+
- spec/spec/runner/reporter_spec.rb
|
200
|
+
- spec/spec/runner/spec_matcher_spec.rb
|
201
|
+
- spec/spec/runner/spec_parser_spec.rb
|
202
|
+
- spec/spec/spec_classes.rb
|
203
|
+
- spec/spec/translator_spec.rb
|
204
|
+
- spec/spec_helper.rb
|
205
205
|
- examples/auto_spec_description_example.rb
|
206
206
|
- examples/before_and_after_example.rb
|
207
207
|
- examples/behave_as_example.rb
|