rspec-sleeping_king_studios 2.2.2 → 2.2.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27bca27d749c25c4832b3d37afd538134f0ee912
4
- data.tar.gz: f6f3b0722eadb234a5aa816e2aac941690c25dc3
3
+ metadata.gz: afcd93766a0156c989341521f81f5633eb59e558
4
+ data.tar.gz: 217f50e8986ecd00be0d547c67aa7627d98e9569
5
5
  SHA512:
6
- metadata.gz: 6e989536954b97e1e936ec60fcb7351d5234dcf0ad7ee12e07cbd3495ba0075f42c474e0119d59e0b1491c017056a1868bd2bf6b993c575616b138a35de8c17c
7
- data.tar.gz: 8730519c5e59a2a59cd22e30a9aee251cf63330ad17d16f57ae3d7cda414f51fe94cfd32b78eac54e7f567511320573fab3cf313b6de89e22a70983a878046ba
6
+ metadata.gz: 3294d65f9b6fc00eacc7296514c6f0292a99c1e147beb186cf9448024ccc659393993f476cb3d2f2d8e5f601f0e293011e67eaa845c4416272728486ce4d2f61
7
+ data.tar.gz: d74d05238f73033150ec558f0a3822c2cb51d5f25db45c5cc89cc1d9d5e35b26a3079f6f0308d5a187e30371f9c56d3628e3aec12a058ecb736a686bbed90f1e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.2.3
4
+
5
+ Added support for RSpec 3.6, dropped support for RSpec 3.0 to 3.2.
6
+
3
7
  ## 2.2.2
4
8
 
5
9
  Added configuration option to catch empty #include matchers.
data/DEVELOPMENT.md CHANGED
@@ -4,12 +4,14 @@
4
4
 
5
5
  ### Features
6
6
 
7
+ - Alias `have_reader`, etc as `define_reader`.
8
+ - Also alias shared examples.
7
9
  - Alias `have_constant` as `define_constant`.
8
10
  - Alias #immutable as #frozen.
9
11
  - Also alias shared examples.
12
+ - Add 'should have class reader/writer/property' shared examples.
13
+ - Add 'should have private reader/writer/property' shared examples.
10
14
  - Implement RespondToMatcher#with_at_least(N).arguments, equivalent to with(N).arguments.and_unlimited_arguments.
11
- - Revisit failure messages for #respond_to, #be_constructible - see #received/#have_received for example?
12
- - Enhance RSpec matcher examples to display the #failure_message on a failed "should pass/fail with" example.
13
15
 
14
16
  ## Future Tasks
15
17
 
@@ -23,13 +25,39 @@
23
25
 
24
26
  ### Features
25
27
 
28
+ - Implement ::stub_env, #stub_env: |
29
+
30
+ describe 'something' do
31
+ # Changes the value using an around(:example) block.
32
+ stub_env('FIRST_KEY', 'value')
33
+
34
+ # Block syntax.
35
+ stub_env('SECOND_KEY') { calculated_value }
36
+
37
+ it 'should something' do
38
+ # Temporarily changes the value, calls the block, and resets the value.
39
+ stub_env('THIRD_KEY', 'value') do
40
+
41
+ end # stub_env
42
+ end # it
43
+ end # describe
44
+
45
+ - Implement example-scoped test constants: |
46
+
47
+ example_class 'Example::Class::Name' do |klass| ... end
48
+
49
+ example_module 'Example::Module::Name' do |mod| ... end
50
+
51
+ example_const 'Example::Constant::Name' do ... end
52
+
53
+ - Implement be_immutable matcher.
54
+ - Enhance RSpec matcher examples to display the #failure_message on a failed "should pass/fail with" example.
26
55
  - let?(:name) { } # Defines a memoized helper, but only if one is not already defined.
27
56
  - Add spy+matcher for expect(my_object, :my_method).to have_changed ?
28
- - Add 'should have class reader/writer/property' shared examples.
29
- - Add 'should have private reader/writer/property' shared examples.
30
57
 
31
58
  ### Maintenance
32
59
 
60
+ - Revisit failure messages for #respond_to, #be_constructible - see #received/#have_received for example?
33
61
  - Revisit how matchers are documented, particularly in README.md
34
62
  - Use matcher class name instead of macro names?
35
63
  - Clarify documentation of parameters - YARD-like?
@@ -39,6 +67,18 @@
39
67
 
40
68
  ## Icebox
41
69
 
70
+ - Chainable examples: |
71
+
72
+ it 'should do something' do
73
+ # Always run.
74
+ end.
75
+ then 'should do something else' do
76
+ # Only runs if first example passes.
77
+ end.
78
+ then 'should do a third thing' do
79
+ # Only runs if first and second examples pass.
80
+ end
81
+
42
82
  - Implement Matchers::define_negated_matcher.
43
83
  - Implement RespondTo#with_optional_keywords.
44
84
  - Implement negated compound matchers, e.g. expect().to match().and_not other_match()
data/README.md CHANGED
@@ -4,16 +4,18 @@ A collection of matchers and extensions to ease TDD/BDD using RSpec. Extends bui
4
4
 
5
5
  ## Support
6
6
 
7
- RSpec::SleepingKingStudios is tested against RSpec 3.0 through 3.5.
7
+ RSpec::SleepingKingStudios is tested against RSpec 3.3 through 3.6.
8
8
 
9
9
  Currently, the following versions of Ruby are officially supported:
10
10
 
11
- * 2.1
12
11
  * 2.2
13
12
  * 2.3
13
+ * 2.4
14
14
 
15
15
  For Ruby 2.0 support, use version 2.1 or earlier: `gem "rspec-sleeping_king_studios", "~> 2.1.1"`.
16
16
 
17
+ For RSpec 3.0 to 3.2 support, use version 2.2 or earlier: `gem "rspec-sleeping_king_studios", "~> 2.2.2"`.
18
+
17
19
  If you require a previous version of Ruby or RSpec, the 1.0 branch supports Ruby 1.9.3 and RSpec 2: `gem "rspec-sleeping_king_studios", "~> 1.0.1"`. However, changes from 2.0 and higher will not be backported.
18
20
 
19
21
  ## Contribute
@@ -13,7 +13,7 @@ module RSpec
13
13
  # Minor version.
14
14
  MINOR = 2
15
15
  # Patch version.
16
- PATCH = 2
16
+ PATCH = 3
17
17
  # Prerelease version.
18
18
  PRERELEASE = nil
19
19
  # Build metadata.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-sleeping_king_studios
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob "Merlin" Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-19 00:00:00.000000000 Z
11
+ date: 2017-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
251
  version: '0'
252
252
  requirements: []
253
253
  rubyforge_project:
254
- rubygems_version: 2.5.1
254
+ rubygems_version: 2.6.11
255
255
  signing_key:
256
256
  specification_version: 4
257
257
  summary: A collection of RSpec patches and custom matchers.