transpec 1.11.0 → 1.11.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/transpec/option_parser.rb +2 -1
- data/lib/transpec/version.rb +1 -1
- data/tasks/lib/transpec_demo.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be81d8c6008e09a8dd02f276b7dd3b01155b28be
|
|
4
|
+
data.tar.gz: 06c16bc90a1ba3851bc4004f29aadb1daf736dd4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7cd465d319c14f360688e20e34c3cf8ce66b7f209d7cbd2f9b84397761d9ec44f39f0f78c19fa474af8509f0d894c54154f982dbc677d7ab6be1be5ec6c4478
|
|
7
|
+
data.tar.gz: 212dcc0282e32fc1a64a1887d3159635434cdfb48567a34a077c9c6712f578f277a4ab229e6c0a9e5ac569dbf51f7d308603d96ec31123d607bb18e0bc38ba71
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Development
|
|
4
4
|
|
|
5
|
+
## v1.11.1
|
|
6
|
+
|
|
7
|
+
* Add missing description of `example_group` for `-v/--convert` option in the `-h/--help` text
|
|
8
|
+
|
|
5
9
|
## v1.11.0
|
|
6
10
|
|
|
7
11
|
* Support conversion to non-monkey-patch example groups ([#22](https://github.com/yujinakayama/transpec/issues/22))
|
|
@@ -136,7 +136,7 @@ module Transpec
|
|
|
136
136
|
'Keep specific syntaxes by disabling conversions.',
|
|
137
137
|
'Conversion Types:',
|
|
138
138
|
' *should* (to `expect(obj).to`)',
|
|
139
|
-
' *oneliner* (
|
|
139
|
+
' *oneliner* (`it { should ... }` to `it { is_expected.to ... }`)',
|
|
140
140
|
' *should_receive* (to `expect(obj).to receive`)',
|
|
141
141
|
' *stub* (to `allow(obj).to receive`)',
|
|
142
142
|
' *have_items* (to `expect(collection.size).to eq(n)`)',
|
|
@@ -148,6 +148,7 @@ module Transpec
|
|
|
148
148
|
'-v' => [
|
|
149
149
|
'Enable specific conversions that are disabled by default.',
|
|
150
150
|
'Conversion Types:',
|
|
151
|
+
' *example_group* (`describe` to `RSpec.describe`)',
|
|
151
152
|
' *stub_with_hash* (`obj.stub(:msg => val)` to',
|
|
152
153
|
' `allow(obj).to receive(:msg).and_return(val)`)',
|
|
153
154
|
'These conversions are disabled by default.'
|
data/lib/transpec/version.rb
CHANGED
data/tasks/lib/transpec_demo.rb
CHANGED
|
@@ -32,7 +32,7 @@ class TranspecDemo < TranspecTest
|
|
|
32
32
|
def run_demo(transpec_args = [])
|
|
33
33
|
in_project_dir do
|
|
34
34
|
with_clean_bundler_env do
|
|
35
|
-
sh File.join(Transpec.root, 'bin', 'transpec'), '--force', '--convert
|
|
35
|
+
sh File.join(Transpec.root, 'bin', 'transpec'), '--force', '--convert', 'stub_with_hash'
|
|
36
36
|
sh 'bundle exec rspec'
|
|
37
37
|
sh "git checkout --quiet -b #{DEMO_BRANCH}"
|
|
38
38
|
sh 'git commit --all --file .git/COMMIT_EDITMSG'
|