rspec-core 2.99.1 → 2.99.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +8 -0
- data/lib/rspec/core/example_group.rb +3 -2
- data/lib/rspec/core/version.rb +1 -1
- data/spec/rspec/core/example_group_spec.rb +14 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f54ed071171201f361643ad415b54259c1c3f940
|
4
|
+
data.tar.gz: 0bef75548f1c5296d67f7a713ce5f37a2c71e0e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6aa1aa55d05543c9f076851d35f035b7b0a61928a008d2d3579f68a6998efb7d1492e2d7b54e5c292bef63dad3e73043d3e03e8798a98c962593295448c2b08
|
7
|
+
data.tar.gz: 3af6e5b477e2ed649155fd7e7cc25d7caf93e3aed51981fa343c40179f9379001b52417114f5582b1ef72b37b26a93fddf1f964d81b10fb21c4fc908dec5727c
|
data/Changelog.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
### 2.99.2 / 2014-08-19
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.1...v2.99.2)
|
3
|
+
|
4
|
+
Enhancements:
|
5
|
+
|
6
|
+
* Improve deprecation warning for RSpec 3 change in `describe <a symbol>`
|
7
|
+
behavior. (Jon Rowe, #1667)
|
8
|
+
|
1
9
|
### 2.99.1 / 2014-06-19
|
2
10
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.0...v2.99.1)
|
3
11
|
|
@@ -350,8 +350,9 @@ WARNING
|
|
350
350
|
<<-EOS.gsub(/^\s+\|/, '')
|
351
351
|
|The semantics of `describe <a #{arg.class.name}>` are changing in RSpec 3. In RSpec 2,
|
352
352
|
|this would be treated as metadata, but as the first `describe` argument,
|
353
|
-
|this will be treated as the described object
|
354
|
-
|
353
|
+
|this will be treated as the described object (affecting the value of
|
354
|
+
|`described_class`) in RSpec 3. If you want this to be treated as metadata,
|
355
|
+
|pass a description as the first argument.
|
355
356
|
|(Example group defined at #{call_site})
|
356
357
|
EOS
|
357
358
|
end
|
data/lib/rspec/core/version.rb
CHANGED
@@ -344,7 +344,7 @@ module RSpec::Core
|
|
344
344
|
warn_opts
|
345
345
|
end
|
346
346
|
|
347
|
-
it "prints a deprecation warning since the semantics are changing in RSpec 3" do
|
347
|
+
it "prints a deprecation warning since the semantics of an inner described_class are changing in RSpec 3" do
|
348
348
|
warn_opts = capture_deprecation_options do
|
349
349
|
ExampleGroup.describe(String) do
|
350
350
|
describe Array do
|
@@ -357,6 +357,19 @@ module RSpec::Core
|
|
357
357
|
expect(warn_opts[:message]).to include("described_class")
|
358
358
|
end
|
359
359
|
|
360
|
+
it "prints a deprecation warning since the semantics of an inner described symbol are changing in RSpec 3" do
|
361
|
+
warn_opts = capture_deprecation_options do
|
362
|
+
ExampleGroup.describe(String) do
|
363
|
+
describe :method do
|
364
|
+
example { described_class }
|
365
|
+
end
|
366
|
+
end.run
|
367
|
+
end
|
368
|
+
|
369
|
+
expect(warn_opts[:message]).to include("#{__FILE__}:#{__LINE__ - 6}")
|
370
|
+
expect(warn_opts[:message]).to include("described_class")
|
371
|
+
end
|
372
|
+
|
360
373
|
it "prints a deprecation even when `described_class` has already been referenced in the outer group" do
|
361
374
|
warn_opts = capture_deprecation_options do
|
362
375
|
outer_dc = inner_dc = nil
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.99.
|
4
|
+
version: 2.99.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Baker
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-08-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -384,7 +384,7 @@ rubyforge_project: rspec
|
|
384
384
|
rubygems_version: 2.2.2
|
385
385
|
signing_key:
|
386
386
|
specification_version: 4
|
387
|
-
summary: rspec-core-2.99.
|
387
|
+
summary: rspec-core-2.99.2
|
388
388
|
test_files:
|
389
389
|
- features/Autotest.md
|
390
390
|
- features/README.md
|