rspec-core 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.markdown +10 -0
- data/features/.nav +46 -0
- data/features/Changelog.md +154 -0
- data/features/Upgrade.md +345 -0
- data/features/example_groups/basic_structure.feature +1 -1
- data/features/example_groups/shared_example_group.feature +1 -1
- data/lib/rspec/core/extensions/kernel.rb +1 -1
- data/lib/rspec/core/formatters/html_formatter.rb +5 -1
- data/lib/rspec/core/version.rb +1 -1
- data/spec/rspec/core/formatters/documentation_formatter_spec.rb +2 -2
- data/spec/rspec/core/formatters/html_formatted-1.8.6.html +7 -7
- data/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +6 -6
- data/spec/rspec/core/formatters/html_formatted-1.8.7.html +7 -7
- data/spec/rspec/core/formatters/html_formatted-1.9.1.html +7 -7
- data/spec/rspec/core/formatters/html_formatted-1.9.2.html +7 -7
- data/spec/rspec/core/formatters/text_mate_formatted-1.8.6.html +7 -7
- data/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +6 -6
- data/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +7 -7
- data/spec/rspec/core/formatters/text_mate_formatted-1.9.1.html +7 -7
- data/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +7 -7
- data/spec/rspec/core/subject_spec.rb +1 -1
- metadata +12 -8
data/History.markdown
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
## rspec-core release history (incomplete)
|
2
2
|
|
3
|
+
### 2.3.1 / 2010-12-16
|
4
|
+
|
5
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.3.0...v2.3.1)
|
6
|
+
|
7
|
+
* Bug fixes
|
8
|
+
* send debugger warning message to $stdout if RSpec.configuration.error_stream
|
9
|
+
has not been defined yet.
|
10
|
+
* HTML Formatter _finally_ properly displays nested groups (Jarmo Pertman)
|
11
|
+
* eliminate some warnings when running RSpec's own suite (Jarmo Pertman)
|
12
|
+
|
3
13
|
### 2.3.0 / 2010-12-12
|
4
14
|
|
5
15
|
[full changelog](http://github.com/rspec/rspec-core/compare/v2.2.1...v2.3.0)
|
data/features/.nav
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
- Upgrade.md
|
2
|
+
- Changelog.md
|
3
|
+
- example_groups:
|
4
|
+
- basic_structure.feature
|
5
|
+
- shared_example_group.feature
|
6
|
+
- hooks:
|
7
|
+
- before_and_after_hooks.feature
|
8
|
+
- around_hooks.feature
|
9
|
+
- pending:
|
10
|
+
- pending_examples.feature
|
11
|
+
- subject:
|
12
|
+
- implicit_subject.feature
|
13
|
+
- explicit_subject.feature
|
14
|
+
- attribute_of_subject.feature
|
15
|
+
- implicit_receiver.feature
|
16
|
+
- metadata:
|
17
|
+
- described_class.feature
|
18
|
+
- filtering:
|
19
|
+
- inclusion_filters.feature
|
20
|
+
- exclusion_filters.feature
|
21
|
+
- implicit_filters.feature
|
22
|
+
- run_all_when_everything_filtered.feature
|
23
|
+
- command_line:
|
24
|
+
- configure.feature
|
25
|
+
- example_name_option.feature
|
26
|
+
- exit_status.feature
|
27
|
+
- line_number_appended_to_path.feature
|
28
|
+
- line_number_option.feature
|
29
|
+
- rake_task.feature
|
30
|
+
- tag.feature
|
31
|
+
- configuration:
|
32
|
+
- read_options_from_file.feature
|
33
|
+
- fail_fast.feature
|
34
|
+
- custom_settings.feature
|
35
|
+
- expectation_framework_integration:
|
36
|
+
- configure_expectation_framework.feature
|
37
|
+
- mock_framework_integration:
|
38
|
+
- use_rspec.feature
|
39
|
+
- use_flexmock.feature
|
40
|
+
- use_mocha.feature
|
41
|
+
- use_rr.feature
|
42
|
+
- use_any_framework.feature
|
43
|
+
- formatters:
|
44
|
+
- custom_formatter.feature
|
45
|
+
- spec_files:
|
46
|
+
- arbitrary_file_suffix.feature
|
@@ -0,0 +1,154 @@
|
|
1
|
+
## rspec-core release history (incomplete)
|
2
|
+
|
3
|
+
### 2.3.0 / 2010-12-12
|
4
|
+
|
5
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.2.1...v2.3.0)
|
6
|
+
|
7
|
+
* Enhancements
|
8
|
+
* tell autotest to use "rspec2" if it sees a .rspec file in the project's
|
9
|
+
root directory
|
10
|
+
* replaces the need for ./autotest/discover.rb, which will not work with
|
11
|
+
all versions of ZenTest and/or autotest
|
12
|
+
* config.expect_with
|
13
|
+
* :rspec # => rspec/expectations
|
14
|
+
* :stdlib # => test/unit/assertions
|
15
|
+
* :rspec, :stdlib # => both
|
16
|
+
|
17
|
+
* Bug fixes
|
18
|
+
* fix dev Gemfile to work on non-mac-os machines (Lake Denman)
|
19
|
+
* ensure explicit subject is only eval'd once (Laszlo Bacsi)
|
20
|
+
|
21
|
+
### 2.2.1 / 2010-11-28
|
22
|
+
|
23
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.2.0...v2.2.1)
|
24
|
+
|
25
|
+
* Bug fixes
|
26
|
+
* alias_method instead of override Kernel#method_missing (John Wilger)
|
27
|
+
* changed --autotest to --tty in generated command (MIKAMI Yoshiyuki)
|
28
|
+
* revert change to debugger (had introduced conflict with Rails)
|
29
|
+
* also restored --debugger/-debug option
|
30
|
+
|
31
|
+
### 2.2.0 / 2010-11-28
|
32
|
+
|
33
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.1.0...v2.2.0)
|
34
|
+
|
35
|
+
* Deprecations/changes
|
36
|
+
* --debug/-d on command line is deprecated and now has no effect
|
37
|
+
* win32console is now ignored; Windows users must use ANSICON for color support
|
38
|
+
(Bosko Ivanisevic)
|
39
|
+
|
40
|
+
* Enhancements
|
41
|
+
* When developing locally rspec-core now works with the rspec-dev setup or your local gems
|
42
|
+
* Raise exception with helpful message when rspec-1 is loaded alongside
|
43
|
+
rspec-2 (Justin Ko)
|
44
|
+
* debugger statements _just work_ as long as ruby-debug is installed
|
45
|
+
* otherwise you get warned, but not fired
|
46
|
+
* Expose example.metadata in around hooks
|
47
|
+
* Performance improvments (see [Upgrade.markdown](https://github.com/rspec/rspec-core/blob/master/Upgrade.markdown))
|
48
|
+
|
49
|
+
* Bug fixes
|
50
|
+
* Make sure --fail-fast makes it across drb
|
51
|
+
* Pass -Ilib:spec to rcov
|
52
|
+
|
53
|
+
### 2.1.0 / 2010-11-07
|
54
|
+
|
55
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.0.1...v2.1.0)
|
56
|
+
|
57
|
+
* Enhancments
|
58
|
+
* Add skip_bundler option to rake task to tell rake task to ignore the
|
59
|
+
presence of a Gemfile (jfelchner)
|
60
|
+
* Add gemfile option to rake task to tell rake task what Gemfile to look
|
61
|
+
for (defaults to 'Gemfile')
|
62
|
+
* Allow passing caller trace into Metadata to support extensions (Glenn
|
63
|
+
Vanderburg)
|
64
|
+
* Add deprecation warning for Spec::Runner.configure to aid upgrade from
|
65
|
+
RSpec-1
|
66
|
+
* Add deprecated Spec::Rake::SpecTask to aid upgrade from RSpec-1
|
67
|
+
* Add 'autospec' command with helpful message to aid upgrade from RSpec-1
|
68
|
+
* Add support for filtering with tags on CLI (Lailson Bandeira)
|
69
|
+
* Add a helpful message about RUBYOPT when require fails in bin/rspec
|
70
|
+
(slyphon)
|
71
|
+
* Add "-Ilib" to the default rcov options (Tianyi Cui)
|
72
|
+
* Make the expectation framework configurable (default rspec, of course)
|
73
|
+
(Justin Ko)
|
74
|
+
* Add 'pending' to be conditional (Myron Marston)
|
75
|
+
* Add explicit support for :if and :unless as metadata keys for conditional run
|
76
|
+
of examples (Myron Marston)
|
77
|
+
* Add --fail-fast command line option (Jeff Kreeftmeijer)
|
78
|
+
|
79
|
+
* Bug fixes
|
80
|
+
* Eliminate stack overflow with "subject { self }"
|
81
|
+
* Require 'rspec/core' in the Raketask (ensures it required when running rcov)
|
82
|
+
|
83
|
+
### 2.0.1 / 2010-10-18
|
84
|
+
|
85
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.0.0...v2.0.1)
|
86
|
+
|
87
|
+
* Bug fixes
|
88
|
+
* Restore color when using spork + autotest
|
89
|
+
* Pending examples without docstrings render the correct message (Josep M. Bach)
|
90
|
+
* Fixed bug where a failure in a spec file ending in anything but _spec.rb would
|
91
|
+
fail in a confusing way.
|
92
|
+
* Support backtrace lines from erb templates in html formatter (Alex Crichton)
|
93
|
+
|
94
|
+
### 2.0.0 / 2010-10-10
|
95
|
+
|
96
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.rc...v2.0.0)
|
97
|
+
|
98
|
+
* RSpec-1 compatibility
|
99
|
+
* Rake task uses ENV["SPEC"] as file list if present
|
100
|
+
|
101
|
+
* Bug fixes
|
102
|
+
* Bug Fix: optparse --out foo.txt (Leonardo Bessa)
|
103
|
+
* Suppress color codes for non-tty output (except autotest)
|
104
|
+
|
105
|
+
### 2.0.0.rc / 2010-10-05
|
106
|
+
|
107
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.beta.22...v2.0.0.rc)
|
108
|
+
|
109
|
+
* Enhancements
|
110
|
+
* implicitly require unknown formatters so you don't have to require the
|
111
|
+
file explicitly on the commmand line (Michael Grosser)
|
112
|
+
* add --out/-o option to assign output target
|
113
|
+
* added fail_fast configuration option to abort on first failure
|
114
|
+
* support a Hash subject (its([:key]) { should == value }) (Josep M. Bach)
|
115
|
+
|
116
|
+
* Bug fixes
|
117
|
+
* Explicitly require rspec version to fix broken rdoc task (Hans de Graaff)
|
118
|
+
* Ignore backtrace lines that come from other languages, like Java or
|
119
|
+
Javascript (Charles Lowell)
|
120
|
+
* Rake task now does what is expected when setting (or not setting)
|
121
|
+
fail_on_error and verbose
|
122
|
+
* Fix bug in which before/after(:all) hooks were running on excluded nested
|
123
|
+
groups (Myron Marston)
|
124
|
+
* Fix before(:all) error handling so that it fails examples in nested groups,
|
125
|
+
too (Myron Marston)
|
126
|
+
|
127
|
+
### 2.0.0.beta.22 / 2010-09-12
|
128
|
+
|
129
|
+
[full changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.beta.20...v2.0.0.beta.22)
|
130
|
+
|
131
|
+
* Enhancements
|
132
|
+
* removed at_exit hook
|
133
|
+
* CTRL-C stops the run (almost) immediately
|
134
|
+
* first it cleans things up by running the appropriate after(:all) and after(:suite) hooks
|
135
|
+
* then it reports on any examples that have already run
|
136
|
+
* cleaned up rake task
|
137
|
+
* generate correct task under variety of conditions
|
138
|
+
* options are more consistent
|
139
|
+
* deprecated redundant options
|
140
|
+
* run 'bundle exec autotest' when Gemfile is present
|
141
|
+
* support ERB in .rspec options files (Justin Ko)
|
142
|
+
* depend on bundler for development tasks (Myron Marston)
|
143
|
+
* add example_group_finished to formatters and reporter (Roman Chernyatchik)
|
144
|
+
|
145
|
+
* Bug fixes
|
146
|
+
* support paths with spaces when using autotest (Andreas Neuhaus)
|
147
|
+
* fix module_exec with ruby 1.8.6 (Myron Marston)
|
148
|
+
* remove context method from top-level
|
149
|
+
* was conflicting with irb, for example
|
150
|
+
* errors in before(:all) are now reported correctly (Chad Humphries)
|
151
|
+
|
152
|
+
* Removals
|
153
|
+
* removed -o --options-file command line option
|
154
|
+
* use ./.rspec and ~/.rspec
|
data/features/Upgrade.md
ADDED
@@ -0,0 +1,345 @@
|
|
1
|
+
# rspec-core-2.3
|
2
|
+
|
3
|
+
## autotest integration
|
4
|
+
|
5
|
+
Add a .rspec file to the project's root directory to tell RSpec to tell
|
6
|
+
Autotest to use RSpec's specialized Autotest class.
|
7
|
+
|
8
|
+
NOTE that rspec-core-2.0, 2.1, and 2.2 required an autotest/discover.rb file in
|
9
|
+
the project's root directory. This worked with some, but not all versions of
|
10
|
+
autotest and/or the autotest command that ships with ZenTest. This new approach
|
11
|
+
will work regardless of which version of autotest/ZenTest you are using.
|
12
|
+
|
13
|
+
## config.expect_with
|
14
|
+
|
15
|
+
Use this to configure RSpec to use rspec/expectations (default),
|
16
|
+
test/unit/assertions, or both:
|
17
|
+
|
18
|
+
RSpec.configure do |config|
|
19
|
+
config.expect_with :rspec # => rspec/expectations
|
20
|
+
config.expect_with :stdlib # => test/unit/assertions
|
21
|
+
config.expect_with :rspec, :stdlib # => both
|
22
|
+
end
|
23
|
+
|
24
|
+
# rspec-core-2.2
|
25
|
+
|
26
|
+
## FASTER!
|
27
|
+
|
28
|
+
Made several small optimizations that all add up to a considerable improvement
|
29
|
+
in performance. Using a simple benchmark:
|
30
|
+
|
31
|
+
generate 5000 example groups,
|
32
|
+
each with one example,
|
33
|
+
each with one passing expectation
|
34
|
+
|
35
|
+
Run using ruby-1.9.2 on Mac OS X w/ 3.06 G
|
36
|
+
|
37
|
+
* rspec-2.1
|
38
|
+
* loaded in 0.85 on avg
|
39
|
+
* ran in 2.61 on avg
|
40
|
+
* rspec-2.2
|
41
|
+
* loaded in 0.73 on avg (~15% improvement)
|
42
|
+
* ran in 0.94 on avg (~64% improvement**)
|
43
|
+
|
44
|
+
** this does _not_ mean your suite will be 64% faster, but it does mean that
|
45
|
+
the overhead incurred by RSpec in your suite should be roughly 64% less.
|
46
|
+
|
47
|
+
## Command line
|
48
|
+
|
49
|
+
### --debug/-d is now deprecated
|
50
|
+
|
51
|
+
This command line option is now has no effect (other than a deprecation
|
52
|
+
warning). To use the debugger, just add a `debugger` statement anywhere in your
|
53
|
+
code. As long as you have ruby-debug installed, it will just work. If you
|
54
|
+
don't, then you'll get a friendly warning telling you what's going on, but
|
55
|
+
execution will continue.
|
56
|
+
|
57
|
+
# rspec-core-2.1
|
58
|
+
|
59
|
+
## Command line
|
60
|
+
|
61
|
+
### `--tags`
|
62
|
+
|
63
|
+
Now you can tag groups and examples using metadata and access those tags from
|
64
|
+
the command line. So if you have a group with `:foo => true`:
|
65
|
+
|
66
|
+
describe "something", :foo => true do
|
67
|
+
it "does something" do
|
68
|
+
# ...
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
... now you can run just that group like this:
|
73
|
+
|
74
|
+
rspec spec --tags foo
|
75
|
+
|
76
|
+
### `--fail-fast`
|
77
|
+
|
78
|
+
Add this flag to the command line to tell rspec to clean up and exit after the
|
79
|
+
first failure:
|
80
|
+
|
81
|
+
rspec spec --fail-fast
|
82
|
+
|
83
|
+
## Metata/filtering
|
84
|
+
|
85
|
+
### :if and :unless keys
|
86
|
+
|
87
|
+
Use :if and :unless keys to conditionally run examples with simple boolean
|
88
|
+
expressions:
|
89
|
+
|
90
|
+
describe "something" do
|
91
|
+
it "does something", :if => RUBY_VERSION == 1.8.6 do
|
92
|
+
# ...
|
93
|
+
end
|
94
|
+
it "does something", :unless => RUBY_VERSION == 1.8.6 do
|
95
|
+
# ...
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
## Conditionally 'pending' examples
|
100
|
+
|
101
|
+
Make examples pending based on a condition. This is most useful when you
|
102
|
+
have an example that runs in multiple contexts and fails in one of those due to
|
103
|
+
a bug in a third-party dependency that you expect to be fixed in the future.
|
104
|
+
|
105
|
+
describe "something" do
|
106
|
+
it "does something that doesn't yet work right on JRuby" do
|
107
|
+
pending("waiting for the JRuby team to fix issue XYZ", :if => RUBY_PLATFORM == 'java') do
|
108
|
+
# the content of your spec
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
This example would run normally on all ruby interpretters except JRuby. On JRuby,
|
114
|
+
it uses the block form of `pending`, which causes the example to still be run and
|
115
|
+
will remain pending as long as it fails. In the future, if you upgraded your
|
116
|
+
JRuby installation to a newer release that allows the example to pass, RSpec
|
117
|
+
will report it as a failure (`Expected pending '...' to fail. No Error was raised.`),
|
118
|
+
so that know that you can remove the call to `pending`.
|
119
|
+
|
120
|
+
# New features in rspec-core-2.0
|
121
|
+
|
122
|
+
### Runner
|
123
|
+
|
124
|
+
The new runner for rspec-2 comes from Micronaut.
|
125
|
+
|
126
|
+
### Metadata!
|
127
|
+
|
128
|
+
In rspec-2, every example and example group comes with metadata information
|
129
|
+
like the file and line number on which it was declared, the arguments passed to
|
130
|
+
`describe` and `it`, etc. This metadata can be appended to through a hash
|
131
|
+
argument passed to `describe` or `it`, allowing us to pre and post-process
|
132
|
+
each example in a variety of ways.
|
133
|
+
|
134
|
+
### Filtering
|
135
|
+
|
136
|
+
The most obvious use is for filtering the run. For example:
|
137
|
+
|
138
|
+
# in spec/spec_helper.rb
|
139
|
+
RSpec.configure do |c|
|
140
|
+
c.filter_run :focus => true
|
141
|
+
end
|
142
|
+
|
143
|
+
# in any spec file
|
144
|
+
describe "something" do
|
145
|
+
it "does something", :focus => true do
|
146
|
+
# ....
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
When you run the `rspec` command, rspec will run only the examples that have
|
151
|
+
`:focus => true` in the hash.
|
152
|
+
|
153
|
+
You can also add `run_all_when_everything_filtered` to the config:
|
154
|
+
|
155
|
+
RSpec.configure do |c|
|
156
|
+
c.filter_run :focus => true
|
157
|
+
c.run_all_when_everything_filtered = true
|
158
|
+
end
|
159
|
+
|
160
|
+
Now if there are no examples tagged with `:focus => true`, all examples
|
161
|
+
will be run. This makes it really easy to focus on one example for a
|
162
|
+
while, but then go back to running all of the examples by removing that
|
163
|
+
argument from `it`. Works with `describe` too, in which case it runs
|
164
|
+
all of the examples in that group.
|
165
|
+
|
166
|
+
The configuration will accept a lambda, which provides a lot of flexibility
|
167
|
+
in filtering examples. Say, for example, you have a spec for functionality that
|
168
|
+
behaves slightly differently in Ruby 1.8 and Ruby 1.9. We have that in
|
169
|
+
rspec-core, and here's how we're getting the right stuff to run under the
|
170
|
+
right version:
|
171
|
+
|
172
|
+
# in spec/spec_helper.rb
|
173
|
+
RSpec.configure do |c|
|
174
|
+
c.exclusion_filter = { :ruby => lambda {|version|
|
175
|
+
!(RUBY_VERSION.to_s =~ /^#{version.to_s}/)
|
176
|
+
}}
|
177
|
+
end
|
178
|
+
|
179
|
+
# in any spec file
|
180
|
+
describe "something" do
|
181
|
+
it "does something", :ruby => 1.8 do
|
182
|
+
# ....
|
183
|
+
end
|
184
|
+
|
185
|
+
it "does something", :ruby => 1.9 do
|
186
|
+
# ....
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
In this case, we're using `exclusion_filter` instead of `filter_run` or
|
191
|
+
`filter`, which indicate _inclusion_ filters. So each of those examples is
|
192
|
+
excluded if we're _not_ running the version of Ruby they work with.
|
193
|
+
|
194
|
+
### Shared example groups
|
195
|
+
|
196
|
+
Shared example groups are now run in a nested group within the including group
|
197
|
+
(they used to be run in the same group). Nested groups inherit `before`, `after`,
|
198
|
+
`around`, and `let` hooks, as well as any methods that are defined in the parent
|
199
|
+
group.
|
200
|
+
|
201
|
+
This new approach provides better encapsulation, better output, and an
|
202
|
+
opportunity to add contextual information to the shared group via a block
|
203
|
+
passed to `it_should_behave_like`.
|
204
|
+
|
205
|
+
See [features/example\_groups/shared\_example\_group.feature](http://github.com/rspec/rspec-core/blob/master/features/example_groups/shared_example_group.feature) for more information.
|
206
|
+
|
207
|
+
NOTICE: The including example groups no longer have access to any of the
|
208
|
+
methods, hooks, or state defined inside a shared group. This will break specs
|
209
|
+
that were using shared example groups to extend the behavior of including
|
210
|
+
groups in any way besides their intended purpose: to add examples to a group.
|
211
|
+
|
212
|
+
# Upgrading from rspec-1.x
|
213
|
+
|
214
|
+
### rspec command
|
215
|
+
|
216
|
+
The command to run specs is now `rspec` instead of `spec`.
|
217
|
+
|
218
|
+
rspec ./spec
|
219
|
+
|
220
|
+
#### Co-habitation of rspec-1 and rspec-2
|
221
|
+
|
222
|
+
Early beta versions of RSpec-2 included a `spec` command, which conflicted with
|
223
|
+
the RSpec-1 `spec` command because RSpec-1's was installed by the rspec gem,
|
224
|
+
while RSpec-2's is installed by the rspec-core gem.
|
225
|
+
|
226
|
+
If you installed one of these early versions, the safest bet is to uninstall
|
227
|
+
rspec-1 and rspec-core-2, and then reinstall both. After you do this, you will
|
228
|
+
be able to run rspec-2 like this:
|
229
|
+
|
230
|
+
rspec ./spec
|
231
|
+
|
232
|
+
... and rspec-1 like this:
|
233
|
+
|
234
|
+
spec _1.3.1_ ./spec
|
235
|
+
|
236
|
+
Rubygems inspects the first argument to any gem executable to see if it's
|
237
|
+
formatted like a version number surrounded by underscores. If so, it uses that
|
238
|
+
version (e.g. `1.3.1`). If not, it uses the most recent version (e.g.
|
239
|
+
`2.0.0`).
|
240
|
+
|
241
|
+
### rake task
|
242
|
+
|
243
|
+
A few things changed in the Rake task used to run specs:
|
244
|
+
|
245
|
+
1. The file in which it is defined changed from `spec/rake/spectask` to
|
246
|
+
`rspec/core/rake_task`
|
247
|
+
|
248
|
+
2. The `spec_opts` accessor has been deprecated in favor of `rspec_opts`. Also,
|
249
|
+
the `rspec` command no longer supports the `--options` command line option
|
250
|
+
so the options must be embedded directly in the Rakefile, or stored in the
|
251
|
+
`.rspec` files mentioned above.
|
252
|
+
|
253
|
+
3. In RSpec-1, the rake task would read in rcov options from an `rcov.opts`
|
254
|
+
file. This is ignored by RSpec-2. RCov options are now set directly on the Rake
|
255
|
+
task:
|
256
|
+
|
257
|
+
RSpec::Core::RakeTask.new(:rcov) do |t|
|
258
|
+
t.rcov_opts = %q[--exclude "spec"]
|
259
|
+
end
|
260
|
+
|
261
|
+
3. The `spec_files` accessor has been replaced by `pattern`.
|
262
|
+
|
263
|
+
# rspec-1
|
264
|
+
require 'spec/rake/spectask'
|
265
|
+
|
266
|
+
Spec::Rake::SpecTask.new do |t|
|
267
|
+
t.spec_opts = ['--options', "\"spec/spec.opts\""]
|
268
|
+
t.spec_files = FileList['spec/**/*.rb']
|
269
|
+
end
|
270
|
+
|
271
|
+
# rspec-2
|
272
|
+
require 'rspec/core/rake_task'
|
273
|
+
|
274
|
+
RSpec::Core::RakeTask.new do |t|
|
275
|
+
t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
|
276
|
+
t.pattern = 'spec/**/*_spec.rb'
|
277
|
+
end
|
278
|
+
|
279
|
+
### autotest
|
280
|
+
|
281
|
+
RSpec-2 works with autotest as follows:
|
282
|
+
|
283
|
+
rspec --configure autotest
|
284
|
+
|
285
|
+
This adds `./autotest/discover.rb` with:
|
286
|
+
|
287
|
+
Autotest.add_discovery { "rspec2" }
|
288
|
+
|
289
|
+
Now, on the command line just type:
|
290
|
+
|
291
|
+
autotest
|
292
|
+
|
293
|
+
Or, if you're using bundler:
|
294
|
+
|
295
|
+
bundle exec autotest
|
296
|
+
|
297
|
+
The `autospec` command is a thing of the past.
|
298
|
+
|
299
|
+
### RSpec is the new Spec
|
300
|
+
|
301
|
+
The root namespace (top level module) is now `RSpec` instead of `Spec`, and
|
302
|
+
the root directory under `lib` within all of the `rspec` gems is `rspec` instead of `spec`.
|
303
|
+
|
304
|
+
### Configuration
|
305
|
+
|
306
|
+
Typically in `spec/spec_helper.rb`, configuration is now done like this:
|
307
|
+
|
308
|
+
RSpec.configure do |c|
|
309
|
+
# ....
|
310
|
+
end
|
311
|
+
|
312
|
+
### .rspec
|
313
|
+
|
314
|
+
Command line options can be persisted in a `.rspec` file in a project. You
|
315
|
+
can also store a `.rspec` file in your home directory (`~/.rspec`) with global
|
316
|
+
options. Precedence is:
|
317
|
+
|
318
|
+
command line
|
319
|
+
./.rspec
|
320
|
+
~/.rspec
|
321
|
+
|
322
|
+
### `context` is no longer a top-level method
|
323
|
+
|
324
|
+
We removed `context` from the main object because it was creating conflicts with
|
325
|
+
IRB and some users who had `Context` domain objects. `describe` is still there,
|
326
|
+
so if you want to use `context` at the top level, just alias it:
|
327
|
+
|
328
|
+
alias :context :describe
|
329
|
+
|
330
|
+
Of course, you can still use `context` to declare a nested group:
|
331
|
+
|
332
|
+
describe "something" do
|
333
|
+
context "in some context" do
|
334
|
+
it "does something" do
|
335
|
+
# ...
|
336
|
+
end
|
337
|
+
end
|
338
|
+
end
|
339
|
+
|
340
|
+
### `$KCODE` no longer set implicitly to `'u'`
|
341
|
+
|
342
|
+
In RSpec-1, the runner set `$KCODE` to `'u'`, which impacts, among other
|
343
|
+
things, the behaviour of Regular Expressions when applied to non-ascii
|
344
|
+
characters. This is no longer the case in RSpec-2.
|
345
|
+
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Kernel
|
2
2
|
def debugger(*args)
|
3
|
-
RSpec.configuration.error_stream.puts "debugger statement ignored, use -d or --debug option to enable debugging\n#{caller(0)[1]}"
|
3
|
+
(RSpec.configuration.error_stream || $stderr).puts "\n***** debugger statement ignored, use -d or --debug option to enable debugging\n#{caller(0)[1]}"
|
4
4
|
end unless respond_to?(:debugger)
|
5
5
|
end
|
@@ -49,7 +49,7 @@ module RSpec
|
|
49
49
|
@output.puts "</div>"
|
50
50
|
end
|
51
51
|
@output.puts "<div class=\"example_group\">"
|
52
|
-
@output.puts " <dl>"
|
52
|
+
@output.puts " <dl #{current_indentation}>"
|
53
53
|
@output.puts " <dt id=\"example_group_#{example_group_number}\">#{h(example_group.description)}</dt>"
|
54
54
|
@output.flush
|
55
55
|
end
|
@@ -146,6 +146,10 @@ module RSpec
|
|
146
146
|
@output.puts "</html>"
|
147
147
|
@output.flush
|
148
148
|
end
|
149
|
+
|
150
|
+
def current_indentation
|
151
|
+
"style=\"margin-left: #{(example_group.ancestors.size - 1) * 15}px;\""
|
152
|
+
end
|
149
153
|
|
150
154
|
def html_header
|
151
155
|
<<-EOF
|
data/lib/rspec/core/version.rb
CHANGED
@@ -49,7 +49,7 @@ module RSpec::Core::Formatters
|
|
49
49
|
|
50
50
|
group.run(RSpec::Core::Reporter.new(formatter))
|
51
51
|
|
52
|
-
output.string.should eql
|
52
|
+
output.string.should eql("
|
53
53
|
root
|
54
54
|
context 1
|
55
55
|
nested example 1.1
|
@@ -60,7 +60,7 @@ root
|
|
60
60
|
context 2
|
61
61
|
nested example 2.1
|
62
62
|
nested example 2.2
|
63
|
-
"
|
63
|
+
")
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
@@ -180,7 +180,7 @@ a {
|
|
180
180
|
|
181
181
|
<div class="results">
|
182
182
|
<div class="example_group">
|
183
|
-
<dl>
|
183
|
+
<dl style="margin-left: 0px;">
|
184
184
|
<dt id="example_group_1">pending spec with no implementation</dt>
|
185
185
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
186
186
|
<script type="text/javascript">makeYellow('example_group_1');</script>
|
@@ -189,12 +189,12 @@ a {
|
|
189
189
|
</dl>
|
190
190
|
</div>
|
191
191
|
<div class="example_group">
|
192
|
-
<dl>
|
192
|
+
<dl style="margin-left: 0px;">
|
193
193
|
<dt id="example_group_2">pending command with block format</dt>
|
194
194
|
</dl>
|
195
195
|
</div>
|
196
196
|
<div class="example_group">
|
197
|
-
<dl>
|
197
|
+
<dl style="margin-left: 15px;">
|
198
198
|
<dt id="example_group_3">with content that would fail</dt>
|
199
199
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
200
200
|
<script type="text/javascript">makeYellow('example_group_3');</script>
|
@@ -203,7 +203,7 @@ a {
|
|
203
203
|
</dl>
|
204
204
|
</div>
|
205
205
|
<div class="example_group">
|
206
|
-
<dl>
|
206
|
+
<dl style="margin-left: 15px;">
|
207
207
|
<dt id="example_group_4">with content that would pass</dt>
|
208
208
|
<script type="text/javascript">makeRed('rspec-header');</script>
|
209
209
|
<script type="text/javascript">makeRed('example_group_4');</script>
|
@@ -229,14 +229,14 @@ a {
|
|
229
229
|
</dl>
|
230
230
|
</div>
|
231
231
|
<div class="example_group">
|
232
|
-
<dl>
|
232
|
+
<dl style="margin-left: 0px;">
|
233
233
|
<dt id="example_group_5">passing spec</dt>
|
234
234
|
<script type="text/javascript">moveProgressBar('57.1');</script>
|
235
235
|
<dd class="spec passed"><span class="passed_spec_name">passes</span></dd>
|
236
236
|
</dl>
|
237
237
|
</div>
|
238
238
|
<div class="example_group">
|
239
|
-
<dl>
|
239
|
+
<dl style="margin-left: 0px;">
|
240
240
|
<dt id="example_group_6">failing spec</dt>
|
241
241
|
<script type="text/javascript">makeRed('example_group_6');</script>
|
242
242
|
<script type="text/javascript">moveProgressBar('71.4');</script>
|
@@ -265,7 +265,7 @@ expected 2
|
|
265
265
|
</dl>
|
266
266
|
</div>
|
267
267
|
<div class="example_group">
|
268
|
-
<dl>
|
268
|
+
<dl style="margin-left: 0px;">
|
269
269
|
<dt id="example_group_7">a failing spec with odd backtraces</dt>
|
270
270
|
<script type="text/javascript">makeRed('example_group_7');</script>
|
271
271
|
<script type="text/javascript">moveProgressBar('85.7');</script>
|
@@ -180,7 +180,7 @@ a {
|
|
180
180
|
|
181
181
|
<div class="results">
|
182
182
|
<div class="example_group">
|
183
|
-
<dl>
|
183
|
+
<dl style="margin-left: 0px;">
|
184
184
|
<dt id="example_group_1">pending spec with no implementation</dt>
|
185
185
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
186
186
|
<script type="text/javascript">makeYellow('example_group_1');</script>
|
@@ -189,12 +189,12 @@ a {
|
|
189
189
|
</dl>
|
190
190
|
</div>
|
191
191
|
<div class="example_group">
|
192
|
-
<dl>
|
192
|
+
<dl style="margin-left: 0px;">
|
193
193
|
<dt id="example_group_2">pending command with block format</dt>
|
194
194
|
</dl>
|
195
195
|
</div>
|
196
196
|
<div class="example_group">
|
197
|
-
<dl>
|
197
|
+
<dl style="margin-left: 15px;">
|
198
198
|
<dt id="example_group_3">with content that would fail</dt>
|
199
199
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
200
200
|
<script type="text/javascript">makeYellow('example_group_3');</script>
|
@@ -203,7 +203,7 @@ a {
|
|
203
203
|
</dl>
|
204
204
|
</div>
|
205
205
|
<div class="example_group">
|
206
|
-
<dl>
|
206
|
+
<dl style="margin-left: 15px;">
|
207
207
|
<dt id="example_group_4">with content that would pass</dt>
|
208
208
|
<script type="text/javascript">makeRed('rspec-header');</script>
|
209
209
|
<script type="text/javascript">makeRed('example_group_4');</script>
|
@@ -236,14 +236,14 @@ a {
|
|
236
236
|
</dl>
|
237
237
|
</div>
|
238
238
|
<div class="example_group">
|
239
|
-
<dl>
|
239
|
+
<dl style="margin-left: 0px;">
|
240
240
|
<dt id="example_group_5">passing spec</dt>
|
241
241
|
<script type="text/javascript">moveProgressBar('80.0');</script>
|
242
242
|
<dd class="spec passed"><span class="passed_spec_name">passes</span></dd>
|
243
243
|
</dl>
|
244
244
|
</div>
|
245
245
|
<div class="example_group">
|
246
|
-
<dl>
|
246
|
+
<dl style="margin-left: 0px;">
|
247
247
|
<dt id="example_group_6">failing spec</dt>
|
248
248
|
<script type="text/javascript">makeRed('example_group_6');</script>
|
249
249
|
<script type="text/javascript">moveProgressBar('100.0');</script>
|
@@ -180,7 +180,7 @@ a {
|
|
180
180
|
|
181
181
|
<div class="results">
|
182
182
|
<div class="example_group">
|
183
|
-
<dl>
|
183
|
+
<dl style="margin-left: 0px;">
|
184
184
|
<dt id="example_group_1">pending spec with no implementation</dt>
|
185
185
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
186
186
|
<script type="text/javascript">makeYellow('example_group_1');</script>
|
@@ -189,12 +189,12 @@ a {
|
|
189
189
|
</dl>
|
190
190
|
</div>
|
191
191
|
<div class="example_group">
|
192
|
-
<dl>
|
192
|
+
<dl style="margin-left: 0px;">
|
193
193
|
<dt id="example_group_2">pending command with block format</dt>
|
194
194
|
</dl>
|
195
195
|
</div>
|
196
196
|
<div class="example_group">
|
197
|
-
<dl>
|
197
|
+
<dl style="margin-left: 15px;">
|
198
198
|
<dt id="example_group_3">with content that would fail</dt>
|
199
199
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
200
200
|
<script type="text/javascript">makeYellow('example_group_3');</script>
|
@@ -203,7 +203,7 @@ a {
|
|
203
203
|
</dl>
|
204
204
|
</div>
|
205
205
|
<div class="example_group">
|
206
|
-
<dl>
|
206
|
+
<dl style="margin-left: 15px;">
|
207
207
|
<dt id="example_group_4">with content that would pass</dt>
|
208
208
|
<script type="text/javascript">makeRed('rspec-header');</script>
|
209
209
|
<script type="text/javascript">makeRed('example_group_4');</script>
|
@@ -229,14 +229,14 @@ a {
|
|
229
229
|
</dl>
|
230
230
|
</div>
|
231
231
|
<div class="example_group">
|
232
|
-
<dl>
|
232
|
+
<dl style="margin-left: 0px;">
|
233
233
|
<dt id="example_group_5">passing spec</dt>
|
234
234
|
<script type="text/javascript">moveProgressBar('57.1');</script>
|
235
235
|
<dd class="spec passed"><span class="passed_spec_name">passes</span></dd>
|
236
236
|
</dl>
|
237
237
|
</div>
|
238
238
|
<div class="example_group">
|
239
|
-
<dl>
|
239
|
+
<dl style="margin-left: 0px;">
|
240
240
|
<dt id="example_group_6">failing spec</dt>
|
241
241
|
<script type="text/javascript">makeRed('example_group_6');</script>
|
242
242
|
<script type="text/javascript">moveProgressBar('71.4');</script>
|
@@ -265,7 +265,7 @@ expected 2
|
|
265
265
|
</dl>
|
266
266
|
</div>
|
267
267
|
<div class="example_group">
|
268
|
-
<dl>
|
268
|
+
<dl style="margin-left: 0px;">
|
269
269
|
<dt id="example_group_7">a failing spec with odd backtraces</dt>
|
270
270
|
<script type="text/javascript">makeRed('example_group_7');</script>
|
271
271
|
<script type="text/javascript">moveProgressBar('85.7');</script>
|
@@ -180,7 +180,7 @@ a {
|
|
180
180
|
|
181
181
|
<div class="results">
|
182
182
|
<div class="example_group">
|
183
|
-
<dl>
|
183
|
+
<dl style="margin-left: 0px;">
|
184
184
|
<dt id="example_group_1">pending spec with no implementation</dt>
|
185
185
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
186
186
|
<script type="text/javascript">makeYellow('example_group_1');</script>
|
@@ -189,12 +189,12 @@ a {
|
|
189
189
|
</dl>
|
190
190
|
</div>
|
191
191
|
<div class="example_group">
|
192
|
-
<dl>
|
192
|
+
<dl style="margin-left: 0px;">
|
193
193
|
<dt id="example_group_2">pending command with block format</dt>
|
194
194
|
</dl>
|
195
195
|
</div>
|
196
196
|
<div class="example_group">
|
197
|
-
<dl>
|
197
|
+
<dl style="margin-left: 15px;">
|
198
198
|
<dt id="example_group_3">with content that would fail</dt>
|
199
199
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
200
200
|
<script type="text/javascript">makeYellow('example_group_3');</script>
|
@@ -203,7 +203,7 @@ a {
|
|
203
203
|
</dl>
|
204
204
|
</div>
|
205
205
|
<div class="example_group">
|
206
|
-
<dl>
|
206
|
+
<dl style="margin-left: 15px;">
|
207
207
|
<dt id="example_group_4">with content that would pass</dt>
|
208
208
|
<script type="text/javascript">makeRed('rspec-header');</script>
|
209
209
|
<script type="text/javascript">makeRed('example_group_4');</script>
|
@@ -229,14 +229,14 @@ a {
|
|
229
229
|
</dl>
|
230
230
|
</div>
|
231
231
|
<div class="example_group">
|
232
|
-
<dl>
|
232
|
+
<dl style="margin-left: 0px;">
|
233
233
|
<dt id="example_group_5">passing spec</dt>
|
234
234
|
<script type="text/javascript">moveProgressBar('57.1');</script>
|
235
235
|
<dd class="spec passed"><span class="passed_spec_name">passes</span></dd>
|
236
236
|
</dl>
|
237
237
|
</div>
|
238
238
|
<div class="example_group">
|
239
|
-
<dl>
|
239
|
+
<dl style="margin-left: 0px;">
|
240
240
|
<dt id="example_group_6">failing spec</dt>
|
241
241
|
<script type="text/javascript">makeRed('example_group_6');</script>
|
242
242
|
<script type="text/javascript">moveProgressBar('71.4');</script>
|
@@ -265,7 +265,7 @@ expected 2
|
|
265
265
|
</dl>
|
266
266
|
</div>
|
267
267
|
<div class="example_group">
|
268
|
-
<dl>
|
268
|
+
<dl style="margin-left: 0px;">
|
269
269
|
<dt id="example_group_7">a failing spec with odd backtraces</dt>
|
270
270
|
<script type="text/javascript">makeRed('example_group_7');</script>
|
271
271
|
<script type="text/javascript">moveProgressBar('85.7');</script>
|
@@ -180,7 +180,7 @@ a {
|
|
180
180
|
|
181
181
|
<div class="results">
|
182
182
|
<div class="example_group">
|
183
|
-
<dl>
|
183
|
+
<dl style="margin-left: 0px;">
|
184
184
|
<dt id="example_group_1">pending spec with no implementation</dt>
|
185
185
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
186
186
|
<script type="text/javascript">makeYellow('example_group_1');</script>
|
@@ -189,12 +189,12 @@ a {
|
|
189
189
|
</dl>
|
190
190
|
</div>
|
191
191
|
<div class="example_group">
|
192
|
-
<dl>
|
192
|
+
<dl style="margin-left: 0px;">
|
193
193
|
<dt id="example_group_2">pending command with block format</dt>
|
194
194
|
</dl>
|
195
195
|
</div>
|
196
196
|
<div class="example_group">
|
197
|
-
<dl>
|
197
|
+
<dl style="margin-left: 15px;">
|
198
198
|
<dt id="example_group_3">with content that would fail</dt>
|
199
199
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
200
200
|
<script type="text/javascript">makeYellow('example_group_3');</script>
|
@@ -203,7 +203,7 @@ a {
|
|
203
203
|
</dl>
|
204
204
|
</div>
|
205
205
|
<div class="example_group">
|
206
|
-
<dl>
|
206
|
+
<dl style="margin-left: 15px;">
|
207
207
|
<dt id="example_group_4">with content that would pass</dt>
|
208
208
|
<script type="text/javascript">makeRed('rspec-header');</script>
|
209
209
|
<script type="text/javascript">makeRed('example_group_4');</script>
|
@@ -229,14 +229,14 @@ a {
|
|
229
229
|
</dl>
|
230
230
|
</div>
|
231
231
|
<div class="example_group">
|
232
|
-
<dl>
|
232
|
+
<dl style="margin-left: 0px;">
|
233
233
|
<dt id="example_group_5">passing spec</dt>
|
234
234
|
<script type="text/javascript">moveProgressBar('57.1');</script>
|
235
235
|
<dd class="spec passed"><span class="passed_spec_name">passes</span></dd>
|
236
236
|
</dl>
|
237
237
|
</div>
|
238
238
|
<div class="example_group">
|
239
|
-
<dl>
|
239
|
+
<dl style="margin-left: 0px;">
|
240
240
|
<dt id="example_group_6">failing spec</dt>
|
241
241
|
<script type="text/javascript">makeRed('example_group_6');</script>
|
242
242
|
<script type="text/javascript">moveProgressBar('71.4');</script>
|
@@ -265,7 +265,7 @@ expected 2
|
|
265
265
|
</dl>
|
266
266
|
</div>
|
267
267
|
<div class="example_group">
|
268
|
-
<dl>
|
268
|
+
<dl style="margin-left: 0px;">
|
269
269
|
<dt id="example_group_7">a failing spec with odd backtraces</dt>
|
270
270
|
<script type="text/javascript">makeRed('example_group_7');</script>
|
271
271
|
<script type="text/javascript">moveProgressBar('85.7');</script>
|
@@ -180,7 +180,7 @@ a {
|
|
180
180
|
|
181
181
|
<div class="results">
|
182
182
|
<div class="example_group">
|
183
|
-
<dl>
|
183
|
+
<dl style="margin-left: 0px;">
|
184
184
|
<dt id="example_group_1">pending spec with no implementation</dt>
|
185
185
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
186
186
|
<script type="text/javascript">makeYellow('example_group_1');</script>
|
@@ -189,12 +189,12 @@ a {
|
|
189
189
|
</dl>
|
190
190
|
</div>
|
191
191
|
<div class="example_group">
|
192
|
-
<dl>
|
192
|
+
<dl style="margin-left: 0px;">
|
193
193
|
<dt id="example_group_2">pending command with block format</dt>
|
194
194
|
</dl>
|
195
195
|
</div>
|
196
196
|
<div class="example_group">
|
197
|
-
<dl>
|
197
|
+
<dl style="margin-left: 15px;">
|
198
198
|
<dt id="example_group_3">with content that would fail</dt>
|
199
199
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
200
200
|
<script type="text/javascript">makeYellow('example_group_3');</script>
|
@@ -203,7 +203,7 @@ a {
|
|
203
203
|
</dl>
|
204
204
|
</div>
|
205
205
|
<div class="example_group">
|
206
|
-
<dl>
|
206
|
+
<dl style="margin-left: 15px;">
|
207
207
|
<dt id="example_group_4">with content that would pass</dt>
|
208
208
|
<script type="text/javascript">makeRed('rspec-header');</script>
|
209
209
|
<script type="text/javascript">makeRed('example_group_4');</script>
|
@@ -229,14 +229,14 @@ a {
|
|
229
229
|
</dl>
|
230
230
|
</div>
|
231
231
|
<div class="example_group">
|
232
|
-
<dl>
|
232
|
+
<dl style="margin-left: 0px;">
|
233
233
|
<dt id="example_group_5">passing spec</dt>
|
234
234
|
<script type="text/javascript">moveProgressBar('57.1');</script>
|
235
235
|
<dd class="spec passed"><span class="passed_spec_name">passes</span></dd>
|
236
236
|
</dl>
|
237
237
|
</div>
|
238
238
|
<div class="example_group">
|
239
|
-
<dl>
|
239
|
+
<dl style="margin-left: 0px;">
|
240
240
|
<dt id="example_group_6">failing spec</dt>
|
241
241
|
<script type="text/javascript">makeRed('example_group_6');</script>
|
242
242
|
<script type="text/javascript">moveProgressBar('71.4');</script>
|
@@ -265,7 +265,7 @@ expected 2
|
|
265
265
|
</dl>
|
266
266
|
</div>
|
267
267
|
<div class="example_group">
|
268
|
-
<dl>
|
268
|
+
<dl style="margin-left: 0px;">
|
269
269
|
<dt id="example_group_7">a failing spec with odd backtraces</dt>
|
270
270
|
<script type="text/javascript">makeRed('example_group_7');</script>
|
271
271
|
<script type="text/javascript">moveProgressBar('85.7');</script>
|
@@ -180,7 +180,7 @@ a {
|
|
180
180
|
|
181
181
|
<div class="results">
|
182
182
|
<div class="example_group">
|
183
|
-
<dl>
|
183
|
+
<dl style="margin-left: 0px;">
|
184
184
|
<dt id="example_group_1">pending spec with no implementation</dt>
|
185
185
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
186
186
|
<script type="text/javascript">makeYellow('example_group_1');</script>
|
@@ -189,12 +189,12 @@ a {
|
|
189
189
|
</dl>
|
190
190
|
</div>
|
191
191
|
<div class="example_group">
|
192
|
-
<dl>
|
192
|
+
<dl style="margin-left: 0px;">
|
193
193
|
<dt id="example_group_2">pending command with block format</dt>
|
194
194
|
</dl>
|
195
195
|
</div>
|
196
196
|
<div class="example_group">
|
197
|
-
<dl>
|
197
|
+
<dl style="margin-left: 15px;">
|
198
198
|
<dt id="example_group_3">with content that would fail</dt>
|
199
199
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
200
200
|
<script type="text/javascript">makeYellow('example_group_3');</script>
|
@@ -203,7 +203,7 @@ a {
|
|
203
203
|
</dl>
|
204
204
|
</div>
|
205
205
|
<div class="example_group">
|
206
|
-
<dl>
|
206
|
+
<dl style="margin-left: 15px;">
|
207
207
|
<dt id="example_group_4">with content that would pass</dt>
|
208
208
|
<script type="text/javascript">makeRed('rspec-header');</script>
|
209
209
|
<script type="text/javascript">makeRed('example_group_4');</script>
|
@@ -233,14 +233,14 @@ a {
|
|
233
233
|
</dl>
|
234
234
|
</div>
|
235
235
|
<div class="example_group">
|
236
|
-
<dl>
|
236
|
+
<dl style="margin-left: 0px;">
|
237
237
|
<dt id="example_group_5">passing spec</dt>
|
238
238
|
<script type="text/javascript">moveProgressBar('80.0');</script>
|
239
239
|
<dd class="spec passed"><span class="passed_spec_name">passes</span></dd>
|
240
240
|
</dl>
|
241
241
|
</div>
|
242
242
|
<div class="example_group">
|
243
|
-
<dl>
|
243
|
+
<dl style="margin-left: 0px;">
|
244
244
|
<dt id="example_group_6">failing spec</dt>
|
245
245
|
<script type="text/javascript">makeRed('example_group_6');</script>
|
246
246
|
<script type="text/javascript">moveProgressBar('100.0');</script>
|
@@ -180,7 +180,7 @@ a {
|
|
180
180
|
|
181
181
|
<div class="results">
|
182
182
|
<div class="example_group">
|
183
|
-
<dl>
|
183
|
+
<dl style="margin-left: 0px;">
|
184
184
|
<dt id="example_group_1">pending spec with no implementation</dt>
|
185
185
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
186
186
|
<script type="text/javascript">makeYellow('example_group_1');</script>
|
@@ -189,12 +189,12 @@ a {
|
|
189
189
|
</dl>
|
190
190
|
</div>
|
191
191
|
<div class="example_group">
|
192
|
-
<dl>
|
192
|
+
<dl style="margin-left: 0px;">
|
193
193
|
<dt id="example_group_2">pending command with block format</dt>
|
194
194
|
</dl>
|
195
195
|
</div>
|
196
196
|
<div class="example_group">
|
197
|
-
<dl>
|
197
|
+
<dl style="margin-left: 15px;">
|
198
198
|
<dt id="example_group_3">with content that would fail</dt>
|
199
199
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
200
200
|
<script type="text/javascript">makeYellow('example_group_3');</script>
|
@@ -203,7 +203,7 @@ a {
|
|
203
203
|
</dl>
|
204
204
|
</div>
|
205
205
|
<div class="example_group">
|
206
|
-
<dl>
|
206
|
+
<dl style="margin-left: 15px;">
|
207
207
|
<dt id="example_group_4">with content that would pass</dt>
|
208
208
|
<script type="text/javascript">makeRed('rspec-header');</script>
|
209
209
|
<script type="text/javascript">makeRed('example_group_4');</script>
|
@@ -229,14 +229,14 @@ a {
|
|
229
229
|
</dl>
|
230
230
|
</div>
|
231
231
|
<div class="example_group">
|
232
|
-
<dl>
|
232
|
+
<dl style="margin-left: 0px;">
|
233
233
|
<dt id="example_group_5">passing spec</dt>
|
234
234
|
<script type="text/javascript">moveProgressBar('57.1');</script>
|
235
235
|
<dd class="spec passed"><span class="passed_spec_name">passes</span></dd>
|
236
236
|
</dl>
|
237
237
|
</div>
|
238
238
|
<div class="example_group">
|
239
|
-
<dl>
|
239
|
+
<dl style="margin-left: 0px;">
|
240
240
|
<dt id="example_group_6">failing spec</dt>
|
241
241
|
<script type="text/javascript">makeRed('example_group_6');</script>
|
242
242
|
<script type="text/javascript">moveProgressBar('71.4');</script>
|
@@ -265,7 +265,7 @@ expected 2
|
|
265
265
|
</dl>
|
266
266
|
</div>
|
267
267
|
<div class="example_group">
|
268
|
-
<dl>
|
268
|
+
<dl style="margin-left: 0px;">
|
269
269
|
<dt id="example_group_7">a failing spec with odd backtraces</dt>
|
270
270
|
<script type="text/javascript">makeRed('example_group_7');</script>
|
271
271
|
<script type="text/javascript">moveProgressBar('85.7');</script>
|
@@ -180,7 +180,7 @@ a {
|
|
180
180
|
|
181
181
|
<div class="results">
|
182
182
|
<div class="example_group">
|
183
|
-
<dl>
|
183
|
+
<dl style="margin-left: 0px;">
|
184
184
|
<dt id="example_group_1">pending spec with no implementation</dt>
|
185
185
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
186
186
|
<script type="text/javascript">makeYellow('example_group_1');</script>
|
@@ -189,12 +189,12 @@ a {
|
|
189
189
|
</dl>
|
190
190
|
</div>
|
191
191
|
<div class="example_group">
|
192
|
-
<dl>
|
192
|
+
<dl style="margin-left: 0px;">
|
193
193
|
<dt id="example_group_2">pending command with block format</dt>
|
194
194
|
</dl>
|
195
195
|
</div>
|
196
196
|
<div class="example_group">
|
197
|
-
<dl>
|
197
|
+
<dl style="margin-left: 15px;">
|
198
198
|
<dt id="example_group_3">with content that would fail</dt>
|
199
199
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
200
200
|
<script type="text/javascript">makeYellow('example_group_3');</script>
|
@@ -203,7 +203,7 @@ a {
|
|
203
203
|
</dl>
|
204
204
|
</div>
|
205
205
|
<div class="example_group">
|
206
|
-
<dl>
|
206
|
+
<dl style="margin-left: 15px;">
|
207
207
|
<dt id="example_group_4">with content that would pass</dt>
|
208
208
|
<script type="text/javascript">makeRed('rspec-header');</script>
|
209
209
|
<script type="text/javascript">makeRed('example_group_4');</script>
|
@@ -229,14 +229,14 @@ a {
|
|
229
229
|
</dl>
|
230
230
|
</div>
|
231
231
|
<div class="example_group">
|
232
|
-
<dl>
|
232
|
+
<dl style="margin-left: 0px;">
|
233
233
|
<dt id="example_group_5">passing spec</dt>
|
234
234
|
<script type="text/javascript">moveProgressBar('57.1');</script>
|
235
235
|
<dd class="spec passed"><span class="passed_spec_name">passes</span></dd>
|
236
236
|
</dl>
|
237
237
|
</div>
|
238
238
|
<div class="example_group">
|
239
|
-
<dl>
|
239
|
+
<dl style="margin-left: 0px;">
|
240
240
|
<dt id="example_group_6">failing spec</dt>
|
241
241
|
<script type="text/javascript">makeRed('example_group_6');</script>
|
242
242
|
<script type="text/javascript">moveProgressBar('71.4');</script>
|
@@ -265,7 +265,7 @@ expected 2
|
|
265
265
|
</dl>
|
266
266
|
</div>
|
267
267
|
<div class="example_group">
|
268
|
-
<dl>
|
268
|
+
<dl style="margin-left: 0px;">
|
269
269
|
<dt id="example_group_7">a failing spec with odd backtraces</dt>
|
270
270
|
<script type="text/javascript">makeRed('example_group_7');</script>
|
271
271
|
<script type="text/javascript">moveProgressBar('85.7');</script>
|
@@ -180,7 +180,7 @@ a {
|
|
180
180
|
|
181
181
|
<div class="results">
|
182
182
|
<div class="example_group">
|
183
|
-
<dl>
|
183
|
+
<dl style="margin-left: 0px;">
|
184
184
|
<dt id="example_group_1">pending spec with no implementation</dt>
|
185
185
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
186
186
|
<script type="text/javascript">makeYellow('example_group_1');</script>
|
@@ -189,12 +189,12 @@ a {
|
|
189
189
|
</dl>
|
190
190
|
</div>
|
191
191
|
<div class="example_group">
|
192
|
-
<dl>
|
192
|
+
<dl style="margin-left: 0px;">
|
193
193
|
<dt id="example_group_2">pending command with block format</dt>
|
194
194
|
</dl>
|
195
195
|
</div>
|
196
196
|
<div class="example_group">
|
197
|
-
<dl>
|
197
|
+
<dl style="margin-left: 15px;">
|
198
198
|
<dt id="example_group_3">with content that would fail</dt>
|
199
199
|
<script type="text/javascript">makeYellow('rspec-header');</script>
|
200
200
|
<script type="text/javascript">makeYellow('example_group_3');</script>
|
@@ -203,7 +203,7 @@ a {
|
|
203
203
|
</dl>
|
204
204
|
</div>
|
205
205
|
<div class="example_group">
|
206
|
-
<dl>
|
206
|
+
<dl style="margin-left: 15px;">
|
207
207
|
<dt id="example_group_4">with content that would pass</dt>
|
208
208
|
<script type="text/javascript">makeRed('rspec-header');</script>
|
209
209
|
<script type="text/javascript">makeRed('example_group_4');</script>
|
@@ -229,14 +229,14 @@ a {
|
|
229
229
|
</dl>
|
230
230
|
</div>
|
231
231
|
<div class="example_group">
|
232
|
-
<dl>
|
232
|
+
<dl style="margin-left: 0px;">
|
233
233
|
<dt id="example_group_5">passing spec</dt>
|
234
234
|
<script type="text/javascript">moveProgressBar('57.1');</script>
|
235
235
|
<dd class="spec passed"><span class="passed_spec_name">passes</span></dd>
|
236
236
|
</dl>
|
237
237
|
</div>
|
238
238
|
<div class="example_group">
|
239
|
-
<dl>
|
239
|
+
<dl style="margin-left: 0px;">
|
240
240
|
<dt id="example_group_6">failing spec</dt>
|
241
241
|
<script type="text/javascript">makeRed('example_group_6');</script>
|
242
242
|
<script type="text/javascript">moveProgressBar('71.4');</script>
|
@@ -265,7 +265,7 @@ expected 2
|
|
265
265
|
</dl>
|
266
266
|
</div>
|
267
267
|
<div class="example_group">
|
268
|
-
<dl>
|
268
|
+
<dl style="margin-left: 0px;">
|
269
269
|
<dt id="example_group_7">a failing spec with odd backtraces</dt>
|
270
270
|
<script type="text/javascript">makeRed('example_group_7');</script>
|
271
271
|
<script type="text/javascript">moveProgressBar('85.7');</script>
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 3
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 2
|
8
7
|
- 3
|
9
|
-
-
|
10
|
-
version: 2.3.
|
8
|
+
- 1
|
9
|
+
version: 2.3.1
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Chad Humphries
|
@@ -16,7 +15,7 @@ autorequire:
|
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-16 00:00:00 -06:00
|
20
19
|
default_executable: rspec
|
21
20
|
dependencies: []
|
22
21
|
|
@@ -43,7 +42,10 @@ files:
|
|
43
42
|
- bin/autospec
|
44
43
|
- bin/rspec
|
45
44
|
- cucumber.yml
|
45
|
+
- features/.nav
|
46
|
+
- features/Changelog.md
|
46
47
|
- features/README.markdown
|
48
|
+
- features/Upgrade.md
|
47
49
|
- features/command_line/configure.feature
|
48
50
|
- features/command_line/example_name_option.feature
|
49
51
|
- features/command_line/exit_status.feature
|
@@ -193,7 +195,7 @@ licenses: []
|
|
193
195
|
post_install_message: |
|
194
196
|
**************************************************
|
195
197
|
|
196
|
-
Thank you for installing rspec-core-2.3.
|
198
|
+
Thank you for installing rspec-core-2.3.1
|
197
199
|
|
198
200
|
Please be sure to look at the upgrade instructions to see what might have
|
199
201
|
changed since the last release:
|
@@ -211,7 +213,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
213
|
requirements:
|
212
214
|
- - ">="
|
213
215
|
- !ruby/object:Gem::Version
|
214
|
-
hash:
|
216
|
+
hash: 762712903546171321
|
215
217
|
segments:
|
216
218
|
- 0
|
217
219
|
version: "0"
|
@@ -220,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
222
|
requirements:
|
221
223
|
- - ">="
|
222
224
|
- !ruby/object:Gem::Version
|
223
|
-
hash:
|
225
|
+
hash: 762712903546171321
|
224
226
|
segments:
|
225
227
|
- 0
|
226
228
|
version: "0"
|
@@ -230,9 +232,11 @@ rubyforge_project: rspec
|
|
230
232
|
rubygems_version: 1.3.7
|
231
233
|
signing_key:
|
232
234
|
specification_version: 3
|
233
|
-
summary: rspec-core-2.3.
|
235
|
+
summary: rspec-core-2.3.1
|
234
236
|
test_files:
|
237
|
+
- features/Changelog.md
|
235
238
|
- features/README.markdown
|
239
|
+
- features/Upgrade.md
|
236
240
|
- features/command_line/configure.feature
|
237
241
|
- features/command_line/example_name_option.feature
|
238
242
|
- features/command_line/exit_status.feature
|