transpec 1.10.4 → 1.11.0
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/.rubocop.yml +3 -3
- data/CHANGELOG.md +9 -0
- data/README.md +96 -18
- data/README.md.erb +117 -51
- data/lib/transpec/base_rewriter.rb +25 -28
- data/lib/transpec/cli.rb +27 -14
- data/lib/transpec/configuration.rb +2 -1
- data/lib/transpec/converter.rb +54 -32
- data/lib/transpec/dynamic_analyzer/helper.rb.erb +44 -0
- data/lib/transpec/dynamic_analyzer/node_util.rb +17 -0
- data/lib/transpec/dynamic_analyzer/rewriter.rb +12 -4
- data/lib/transpec/dynamic_analyzer/runtime_data.rb +3 -4
- data/lib/transpec/dynamic_analyzer.rb +14 -52
- data/lib/transpec/option_parser.rb +89 -81
- data/lib/transpec/processed_source.rb +48 -0
- data/lib/transpec/record.rb +2 -2
- data/lib/transpec/report.rb +5 -1
- data/lib/transpec/rspec_dsl.rb +12 -2
- data/lib/transpec/rspec_version.rb +8 -7
- data/lib/transpec/spec_suite.rb +114 -0
- data/lib/transpec/syntax/example.rb +4 -20
- data/lib/transpec/syntax/example_group.rb +38 -0
- data/lib/transpec/syntax/have.rb +6 -9
- data/lib/transpec/syntax/its.rb +5 -7
- data/lib/transpec/syntax/method_stub.rb +12 -13
- data/lib/transpec/syntax/mixin/any_instance_block.rb +14 -6
- data/lib/transpec/syntax/mixin/context_sensitive.rb +41 -0
- data/lib/transpec/syntax/mixin/matcher_owner.rb +16 -26
- data/lib/transpec/syntax/mixin/monkey_patch_any_instance.rb +1 -1
- data/lib/transpec/syntax/mixin/no_message_allowance.rb +2 -2
- data/lib/transpec/syntax/mixin/useless_and_return.rb +2 -2
- data/lib/transpec/syntax/oneliner_should.rb +9 -13
- data/lib/transpec/syntax/operator.rb +3 -7
- data/lib/transpec/syntax/pending.rb +4 -20
- data/lib/transpec/syntax/rspec_configure/configuration_modification.rb +86 -0
- data/lib/transpec/syntax/rspec_configure/framework.rb +45 -86
- data/lib/transpec/syntax/rspec_configure.rb +18 -6
- data/lib/transpec/syntax/should.rb +3 -5
- data/lib/transpec/syntax/should_receive.rb +1 -1
- data/lib/transpec/syntax.rb +8 -0
- data/lib/transpec/util.rb +0 -8
- data/lib/transpec/version.rb +2 -2
- data/spec/acceptance/configuration_modification_spec.rb +132 -0
- data/spec/acceptance/conversion_spec.rb +114 -0
- data/spec/support/shared_context.rb +6 -12
- data/spec/transpec/cli_spec.rb +21 -23
- data/spec/transpec/configuration_spec.rb +2 -1
- data/spec/transpec/converter_spec.rb +292 -213
- data/spec/transpec/dynamic_analyzer/rewriter_spec.rb +3 -3
- data/spec/transpec/dynamic_analyzer_spec.rb +8 -2
- data/spec/transpec/option_parser_spec.rb +42 -4
- data/spec/transpec/processed_source_spec.rb +67 -0
- data/spec/transpec/rspec_version_spec.rb +8 -2
- data/spec/transpec/spec_suite_spec.rb +107 -0
- data/spec/transpec/syntax/allow_spec.rb +9 -27
- data/spec/transpec/syntax/example_group_spec.rb +172 -0
- data/spec/transpec/syntax/expect_spec.rb +18 -54
- data/spec/transpec/syntax/have_spec.rb +35 -14
- data/spec/transpec/syntax/its_spec.rb +27 -7
- data/spec/transpec/syntax/method_stub_spec.rb +31 -8
- data/spec/transpec/syntax/oneliner_should_spec.rb +22 -131
- data/spec/transpec/syntax/rspec_configure_spec.rb +118 -15
- data/spec/transpec/syntax/should_spec.rb +51 -82
- data/tasks/fixtures/guard/COMMIT_EDITMSG +80 -0
- data/tasks/fixtures/mail/COMMIT_EDITMSG +84 -0
- data/tasks/fixtures/twitter/COMMIT_EDITMSG +36 -0
- data/tasks/lib/transpec_test.rb +23 -2
- data/tasks/readme.rake +35 -0
- metadata +22 -4
- data/lib/transpec/parser.rb +0 -9
@@ -82,109 +82,78 @@ module Transpec
|
|
82
82
|
describe '#operator_matcher' do
|
83
83
|
subject { should_object.operator_matcher }
|
84
84
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
subject.should == 1
|
91
|
-
end
|
85
|
+
let(:source) do
|
86
|
+
<<-END
|
87
|
+
describe 'example' do
|
88
|
+
it 'is 1' do
|
89
|
+
subject.should == 1
|
92
90
|
end
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
it 'returns an instance of Operator' do
|
97
|
-
should be_an(Operator)
|
98
|
-
end
|
91
|
+
end
|
92
|
+
END
|
99
93
|
end
|
100
94
|
|
101
|
-
|
102
|
-
|
103
|
-
<<-END
|
104
|
-
describe 'example' do
|
105
|
-
it 'is empty' do
|
106
|
-
subject.should be_empty
|
107
|
-
end
|
108
|
-
end
|
109
|
-
END
|
110
|
-
end
|
111
|
-
|
112
|
-
it 'returns nil' do
|
113
|
-
should be_nil
|
114
|
-
end
|
95
|
+
it 'returns an instance of Operator' do
|
96
|
+
should be_an(Operator)
|
115
97
|
end
|
116
98
|
end
|
117
99
|
|
118
100
|
describe '#have_matcher' do
|
119
101
|
subject { should_object.have_matcher }
|
120
102
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
subject.should have(2).items
|
127
|
-
end
|
103
|
+
let(:source) do
|
104
|
+
<<-END
|
105
|
+
describe 'example' do
|
106
|
+
it 'has 2 items' do
|
107
|
+
subject.should have(2).items
|
128
108
|
end
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
it 'returns an instance of Have' do
|
133
|
-
should be_an(Have)
|
134
|
-
end
|
109
|
+
end
|
110
|
+
END
|
135
111
|
end
|
136
112
|
|
137
|
-
|
138
|
-
|
139
|
-
<<-END
|
140
|
-
describe 'example' do
|
141
|
-
it 'is 1' do
|
142
|
-
subject.should == 1
|
143
|
-
end
|
144
|
-
end
|
145
|
-
END
|
146
|
-
end
|
147
|
-
|
148
|
-
it 'returns nil' do
|
149
|
-
should be_nil
|
150
|
-
end
|
113
|
+
it 'returns an instance of Have' do
|
114
|
+
should be_an(Have)
|
151
115
|
end
|
116
|
+
end
|
152
117
|
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
118
|
+
describe '#raise_error_matcher' do
|
119
|
+
subject { should_object.raise_error_matcher }
|
120
|
+
|
121
|
+
let(:source) do
|
122
|
+
<<-END
|
123
|
+
describe 'example' do
|
124
|
+
it 'raises error' do
|
125
|
+
lambda { do_something }.should raise_error
|
160
126
|
end
|
161
|
-
|
162
|
-
|
127
|
+
end
|
128
|
+
END
|
129
|
+
end
|
163
130
|
|
164
|
-
|
165
|
-
|
166
|
-
end
|
131
|
+
it 'returns an instance of RaiseError' do
|
132
|
+
should be_an(RaiseError)
|
167
133
|
end
|
168
134
|
end
|
169
135
|
|
170
|
-
describe '#
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
subject.should == 1
|
177
|
-
end
|
136
|
+
describe '#dependent_syntaxes' do
|
137
|
+
let(:source) do
|
138
|
+
<<-END
|
139
|
+
describe 'example' do
|
140
|
+
it 'has 2 items' do
|
141
|
+
subject.should have(2).items
|
178
142
|
end
|
179
|
-
|
180
|
-
|
143
|
+
end
|
144
|
+
END
|
145
|
+
end
|
181
146
|
|
182
|
-
|
183
|
-
|
184
|
-
should_object.
|
185
|
-
|
147
|
+
it 'returns an array containing #have_matcher, #operator_matcher, #raise_error_matcher' do
|
148
|
+
should_object.dependent_syntaxes.should =~ [
|
149
|
+
should_object.have_matcher,
|
150
|
+
should_object.operator_matcher,
|
151
|
+
should_object.raise_error_matcher
|
152
|
+
]
|
186
153
|
end
|
154
|
+
end
|
187
155
|
|
156
|
+
describe '#expectize!' do
|
188
157
|
context 'with expression `obj.should`' do
|
189
158
|
let(:source) do
|
190
159
|
<<-END
|
@@ -414,13 +383,13 @@ module Transpec
|
|
414
383
|
<<-END
|
415
384
|
describe 'example' do
|
416
385
|
it 'is 1' do
|
417
|
-
expect(subject).to
|
386
|
+
expect(subject).to == 1
|
418
387
|
end
|
419
388
|
end
|
420
389
|
END
|
421
390
|
end
|
422
391
|
|
423
|
-
it 'converts to `expect(obj).to
|
392
|
+
it 'converts to `expect(obj).to == 1` form' do
|
424
393
|
should_object.expectize!
|
425
394
|
rewritten_source.should == expected_source
|
426
395
|
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
Convert specs to RSpec 2.99.0.beta2 syntax with Transpec
|
2
|
+
|
3
|
+
This conversion is done by Transpec 1.10.4 with the following command:
|
4
|
+
transpec --force
|
5
|
+
|
6
|
+
* 396 conversions
|
7
|
+
from: obj.should_receive(:message)
|
8
|
+
to: expect(obj).to receive(:message)
|
9
|
+
|
10
|
+
* 239 conversions
|
11
|
+
from: obj.should
|
12
|
+
to: expect(obj).to
|
13
|
+
|
14
|
+
* 113 conversions
|
15
|
+
from: obj.stub(:message)
|
16
|
+
to: allow(obj).to receive(:message)
|
17
|
+
|
18
|
+
* 94 conversions
|
19
|
+
from: obj.should_not_receive(:message)
|
20
|
+
to: expect(obj).not_to receive(:message)
|
21
|
+
|
22
|
+
* 86 conversions
|
23
|
+
from: == expected
|
24
|
+
to: eq(expected)
|
25
|
+
|
26
|
+
* 16 conversions
|
27
|
+
from: stub('something')
|
28
|
+
to: double('something')
|
29
|
+
|
30
|
+
* 15 conversions
|
31
|
+
from: be_true
|
32
|
+
to: be_truthy
|
33
|
+
|
34
|
+
* 15 conversions
|
35
|
+
from: obj.stub!(:message)
|
36
|
+
to: allow(obj).to receive(:message)
|
37
|
+
|
38
|
+
* 13 conversions
|
39
|
+
from: mock('something')
|
40
|
+
to: double('something')
|
41
|
+
|
42
|
+
* 10 conversions
|
43
|
+
from: lambda { }.should_not
|
44
|
+
to: expect { }.not_to
|
45
|
+
|
46
|
+
* 10 conversions
|
47
|
+
from: obj.should_not
|
48
|
+
to: expect(obj).not_to
|
49
|
+
|
50
|
+
* 7 conversions
|
51
|
+
from: be_false
|
52
|
+
to: be_falsey
|
53
|
+
|
54
|
+
* 7 conversions
|
55
|
+
from: obj.unstub(:message)
|
56
|
+
to: allow(obj).to receive(:message).and_call_original
|
57
|
+
|
58
|
+
* 5 conversions
|
59
|
+
from: pending
|
60
|
+
to: skip
|
61
|
+
|
62
|
+
* 4 conversions
|
63
|
+
from: lambda { }.should
|
64
|
+
to: expect { }.to
|
65
|
+
|
66
|
+
* 4 conversions
|
67
|
+
from: obj.should_receive(:message).any_number_of_times
|
68
|
+
to: allow(obj).to receive(:message)
|
69
|
+
|
70
|
+
* 3 conversions
|
71
|
+
from: collection.should have(n).items
|
72
|
+
to: expect(collection.size).to eq(n)
|
73
|
+
|
74
|
+
* 1 conversion
|
75
|
+
from: it { should ... }
|
76
|
+
to: it { is_expected.to ... }
|
77
|
+
|
78
|
+
* 1 conversion
|
79
|
+
from: it { should_not ... }
|
80
|
+
to: it { is_expected.not_to ... }
|
@@ -0,0 +1,84 @@
|
|
1
|
+
Convert specs to RSpec 2.99.0.beta2 syntax with Transpec
|
2
|
+
|
3
|
+
This conversion is done by Transpec 1.10.4 with the following command:
|
4
|
+
transpec --force
|
5
|
+
|
6
|
+
* 2161 conversions
|
7
|
+
from: obj.should
|
8
|
+
to: expect(obj).to
|
9
|
+
|
10
|
+
* 173 conversions
|
11
|
+
from: obj.should_not
|
12
|
+
to: expect(obj).not_to
|
13
|
+
|
14
|
+
* 56 conversions
|
15
|
+
from: obj.should_receive(:message)
|
16
|
+
to: expect(obj).to receive(:message)
|
17
|
+
|
18
|
+
* 32 conversions
|
19
|
+
from: == expected
|
20
|
+
to: eq(expected)
|
21
|
+
|
22
|
+
* 26 conversions
|
23
|
+
from: =~ /pattern/
|
24
|
+
to: match(/pattern/)
|
25
|
+
|
26
|
+
* 21 conversions
|
27
|
+
from: pending
|
28
|
+
to: skip
|
29
|
+
|
30
|
+
* 20 conversions
|
31
|
+
from: be_true
|
32
|
+
to: be_truthy
|
33
|
+
|
34
|
+
* 15 conversions
|
35
|
+
from: it { should ... }
|
36
|
+
to: it { is_expected.to ... }
|
37
|
+
|
38
|
+
* 15 conversions
|
39
|
+
from: lambda { }.should
|
40
|
+
to: expect { }.to
|
41
|
+
|
42
|
+
* 12 conversions
|
43
|
+
from: it { should_not ... }
|
44
|
+
to: it { is_expected.not_to ... }
|
45
|
+
|
46
|
+
* 9 conversions
|
47
|
+
from: obj.should_not_receive(:message)
|
48
|
+
to: expect(obj).not_to receive(:message)
|
49
|
+
|
50
|
+
* 9 conversions
|
51
|
+
from: obj.stub!(:message)
|
52
|
+
to: allow(obj).to receive(:message)
|
53
|
+
|
54
|
+
* 7 conversions
|
55
|
+
from: < expected
|
56
|
+
to: be < expected
|
57
|
+
|
58
|
+
* 6 conversions
|
59
|
+
from: be_false
|
60
|
+
to: be_falsey
|
61
|
+
|
62
|
+
* 5 conversions
|
63
|
+
from: expect { }.not_to raise_error(SpecificErrorClass)
|
64
|
+
to: expect { }.not_to raise_error
|
65
|
+
|
66
|
+
* 2 conversions
|
67
|
+
from: collection.should have(n).items
|
68
|
+
to: expect(collection.size).to eq(n)
|
69
|
+
|
70
|
+
* 2 conversions
|
71
|
+
from: mock('something')
|
72
|
+
to: double('something')
|
73
|
+
|
74
|
+
* 1 conversion
|
75
|
+
from: === expected
|
76
|
+
to: be === expected
|
77
|
+
|
78
|
+
* 1 conversion
|
79
|
+
from: lambda { }.should_not
|
80
|
+
to: expect { }.not_to
|
81
|
+
|
82
|
+
* 1 conversion
|
83
|
+
from: obj.stub!(:message)
|
84
|
+
to: obj.stub(:message)
|
@@ -0,0 +1,36 @@
|
|
1
|
+
Convert specs to RSpec 2.99.0.beta2 syntax with Transpec
|
2
|
+
|
3
|
+
This conversion is done by Transpec 1.10.4 with the following command:
|
4
|
+
transpec --force
|
5
|
+
|
6
|
+
* 899 conversions
|
7
|
+
from: obj.should
|
8
|
+
to: expect(obj).to
|
9
|
+
|
10
|
+
* 61 conversions
|
11
|
+
from: be_false
|
12
|
+
to: be_falsey
|
13
|
+
|
14
|
+
* 37 conversions
|
15
|
+
from: be_true
|
16
|
+
to: be_truthy
|
17
|
+
|
18
|
+
* 11 conversions
|
19
|
+
from: lambda { }.should
|
20
|
+
to: expect { }.to
|
21
|
+
|
22
|
+
* 4 conversions
|
23
|
+
from: =~ /pattern/
|
24
|
+
to: match(/pattern/)
|
25
|
+
|
26
|
+
* 3 conversions
|
27
|
+
from: == expected
|
28
|
+
to: eq(expected)
|
29
|
+
|
30
|
+
* 2 conversions
|
31
|
+
from: obj.should_not
|
32
|
+
to: expect(obj).not_to
|
33
|
+
|
34
|
+
* 2 conversions
|
35
|
+
from: obj.stub!(:message)
|
36
|
+
to: allow(obj).to receive(:message)
|
data/tasks/lib/transpec_test.rb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
-
class TranspecTest
|
3
|
+
class TranspecTest # rubocop:disable ClassLength
|
4
4
|
include FileUtils # This is Rake's one.
|
5
5
|
|
6
|
+
BUNDLER_RETRY_COUNT = 3
|
7
|
+
|
6
8
|
attr_reader :url, :ref, :bundler_args
|
7
9
|
|
8
10
|
def self.base_dir
|
@@ -91,10 +93,29 @@ class TranspecTest
|
|
91
93
|
with_clean_bundler_env do
|
92
94
|
sh File.join(Transpec.root, 'bin', 'transpec'), *transpec_args
|
93
95
|
sh 'bundle exec rspec'
|
96
|
+
compare_summary!
|
94
97
|
end
|
95
98
|
end
|
96
99
|
end
|
97
100
|
|
101
|
+
def compare_summary!
|
102
|
+
unless File.exist?(commit_message_fixture_path)
|
103
|
+
warn "#{commit_message_fixture_path} does not exist. Skipping summary comparison."
|
104
|
+
return
|
105
|
+
end
|
106
|
+
|
107
|
+
require 'rspec/expectations'
|
108
|
+
extend RSpec::Matchers
|
109
|
+
summary = File.read(File.join('.git', 'COMMIT_EDITMSG')).lines.to_a[5..-1]
|
110
|
+
expected_summary = File.read(commit_message_fixture_path).lines.to_a[5..-1]
|
111
|
+
expect(summary).to eq(expected_summary)
|
112
|
+
end
|
113
|
+
|
114
|
+
def commit_message_fixture_path
|
115
|
+
path = File.join(File.dirname(__FILE__), '..', 'fixtures', name, 'COMMIT_EDITMSG')
|
116
|
+
File.expand_path(path)
|
117
|
+
end
|
118
|
+
|
98
119
|
def in_project_dir(&block)
|
99
120
|
Dir.chdir(project_dir, &block)
|
100
121
|
end
|
@@ -132,7 +153,7 @@ class TranspecTest
|
|
132
153
|
def bundle_install
|
133
154
|
in_project_dir do
|
134
155
|
with_clean_bundler_env do
|
135
|
-
sh 'bundle', 'install', *bundler_args
|
156
|
+
sh 'bundle', 'install', '--retry', BUNDLER_RETRY_COUNT.to_s, *bundler_args
|
136
157
|
end
|
137
158
|
end
|
138
159
|
end
|
data/tasks/readme.rake
CHANGED
@@ -28,6 +28,12 @@ def generate_readme
|
|
28
28
|
erb.result(binding)
|
29
29
|
end
|
30
30
|
|
31
|
+
def convert(source, configuration = nil, rspec_version = nil)
|
32
|
+
spec_suite = FakeSpecSuite.new
|
33
|
+
converter = Transpec::Converter.new(spec_suite, configuration, rspec_version)
|
34
|
+
converter.convert_source(source)
|
35
|
+
end
|
36
|
+
|
31
37
|
def select_sections(content, header_level, *section_names)
|
32
38
|
header_pattern = pattern_for_header_level(header_level)
|
33
39
|
sections = content.each_line.slice_before(header_pattern)
|
@@ -55,3 +61,32 @@ end
|
|
55
61
|
def pattern_for_header_level(level)
|
56
62
|
/^#{'#' * level}[^#]/
|
57
63
|
end
|
64
|
+
|
65
|
+
def validate_syntax_type_table(markdown_table, types_in_code)
|
66
|
+
types_in_doc = markdown_table.lines.map do |line|
|
67
|
+
first_column = line.split('|').first
|
68
|
+
first_column.gsub(/[^\w]/, '').to_sym
|
69
|
+
end.sort
|
70
|
+
|
71
|
+
types_in_code.sort!
|
72
|
+
|
73
|
+
unless types_in_doc == types_in_code
|
74
|
+
types_missing_description = types_in_code - types_in_doc
|
75
|
+
fail "No descriptions for syntax types #{types_missing_description}"
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
require 'transpec/spec_suite'
|
80
|
+
|
81
|
+
class FakeSpecSuite < Transpec::SpecSuite
|
82
|
+
def analyze
|
83
|
+
end
|
84
|
+
|
85
|
+
def need_to_modify_yield_receiver_to_any_instance_implementation_blocks_config?
|
86
|
+
true
|
87
|
+
end
|
88
|
+
|
89
|
+
def main_rspec_configure_node?(node)
|
90
|
+
true
|
91
|
+
end
|
92
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transpec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuji Nakayama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -256,17 +256,20 @@ files:
|
|
256
256
|
- lib/transpec/conversion_error.rb
|
257
257
|
- lib/transpec/converter.rb
|
258
258
|
- lib/transpec/dynamic_analyzer.rb
|
259
|
+
- lib/transpec/dynamic_analyzer/helper.rb.erb
|
260
|
+
- lib/transpec/dynamic_analyzer/node_util.rb
|
259
261
|
- lib/transpec/dynamic_analyzer/rewriter.rb
|
260
262
|
- lib/transpec/dynamic_analyzer/runtime_data.rb
|
261
263
|
- lib/transpec/file_finder.rb
|
262
264
|
- lib/transpec/git.rb
|
263
265
|
- lib/transpec/option_parser.rb
|
264
|
-
- lib/transpec/
|
266
|
+
- lib/transpec/processed_source.rb
|
265
267
|
- lib/transpec/project.rb
|
266
268
|
- lib/transpec/record.rb
|
267
269
|
- lib/transpec/report.rb
|
268
270
|
- lib/transpec/rspec_dsl.rb
|
269
271
|
- lib/transpec/rspec_version.rb
|
272
|
+
- lib/transpec/spec_suite.rb
|
270
273
|
- lib/transpec/static_context_inspector.rb
|
271
274
|
- lib/transpec/syntax.rb
|
272
275
|
- lib/transpec/syntax/allow.rb
|
@@ -275,6 +278,7 @@ files:
|
|
275
278
|
- lib/transpec/syntax/current_example.rb
|
276
279
|
- lib/transpec/syntax/double.rb
|
277
280
|
- lib/transpec/syntax/example.rb
|
281
|
+
- lib/transpec/syntax/example_group.rb
|
278
282
|
- lib/transpec/syntax/expect.rb
|
279
283
|
- lib/transpec/syntax/have.rb
|
280
284
|
- lib/transpec/syntax/have/dynamic_analysis.rb
|
@@ -284,6 +288,7 @@ files:
|
|
284
288
|
- lib/transpec/syntax/matcher_definition.rb
|
285
289
|
- lib/transpec/syntax/method_stub.rb
|
286
290
|
- lib/transpec/syntax/mixin/any_instance_block.rb
|
291
|
+
- lib/transpec/syntax/mixin/context_sensitive.rb
|
287
292
|
- lib/transpec/syntax/mixin/expect_base.rb
|
288
293
|
- lib/transpec/syntax/mixin/expectizable.rb
|
289
294
|
- lib/transpec/syntax/mixin/matcher_owner.rb
|
@@ -301,6 +306,7 @@ files:
|
|
301
306
|
- lib/transpec/syntax/raise_error.rb
|
302
307
|
- lib/transpec/syntax/receive.rb
|
303
308
|
- lib/transpec/syntax/rspec_configure.rb
|
309
|
+
- lib/transpec/syntax/rspec_configure/configuration_modification.rb
|
304
310
|
- lib/transpec/syntax/rspec_configure/expectations.rb
|
305
311
|
- lib/transpec/syntax/rspec_configure/framework.rb
|
306
312
|
- lib/transpec/syntax/rspec_configure/mocks.rb
|
@@ -309,6 +315,8 @@ files:
|
|
309
315
|
- lib/transpec/util.rb
|
310
316
|
- lib/transpec/version.rb
|
311
317
|
- spec/.rubocop.yml
|
318
|
+
- spec/acceptance/configuration_modification_spec.rb
|
319
|
+
- spec/acceptance/conversion_spec.rb
|
312
320
|
- spec/spec_helper.rb
|
313
321
|
- spec/support/cache_helper.rb
|
314
322
|
- spec/support/file_helper.rb
|
@@ -323,16 +331,19 @@ files:
|
|
323
331
|
- spec/transpec/file_finder_spec.rb
|
324
332
|
- spec/transpec/git_spec.rb
|
325
333
|
- spec/transpec/option_parser_spec.rb
|
334
|
+
- spec/transpec/processed_source_spec.rb
|
326
335
|
- spec/transpec/project_spec.rb
|
327
336
|
- spec/transpec/record_spec.rb
|
328
337
|
- spec/transpec/report_spec.rb
|
329
338
|
- spec/transpec/rspec_version_spec.rb
|
339
|
+
- spec/transpec/spec_suite_spec.rb
|
330
340
|
- spec/transpec/static_context_inspector_spec.rb
|
331
341
|
- spec/transpec/syntax/allow_spec.rb
|
332
342
|
- spec/transpec/syntax/be_boolean_spec.rb
|
333
343
|
- spec/transpec/syntax/be_close_spec.rb
|
334
344
|
- spec/transpec/syntax/current_example_spec.rb
|
335
345
|
- spec/transpec/syntax/double_spec.rb
|
346
|
+
- spec/transpec/syntax/example_group_spec.rb
|
336
347
|
- spec/transpec/syntax/example_spec.rb
|
337
348
|
- spec/transpec/syntax/expect_spec.rb
|
338
349
|
- spec/transpec/syntax/have_spec.rb
|
@@ -351,6 +362,9 @@ files:
|
|
351
362
|
- spec/transpec_spec.rb
|
352
363
|
- tasks/ci/spec.rake
|
353
364
|
- tasks/demo.rake
|
365
|
+
- tasks/fixtures/guard/COMMIT_EDITMSG
|
366
|
+
- tasks/fixtures/mail/COMMIT_EDITMSG
|
367
|
+
- tasks/fixtures/twitter/COMMIT_EDITMSG
|
354
368
|
- tasks/lib/transpec_demo.rb
|
355
369
|
- tasks/lib/transpec_test.rb
|
356
370
|
- tasks/readme.rake
|
@@ -382,6 +396,8 @@ specification_version: 4
|
|
382
396
|
summary: The RSpec syntax converter
|
383
397
|
test_files:
|
384
398
|
- spec/.rubocop.yml
|
399
|
+
- spec/acceptance/configuration_modification_spec.rb
|
400
|
+
- spec/acceptance/conversion_spec.rb
|
385
401
|
- spec/spec_helper.rb
|
386
402
|
- spec/support/cache_helper.rb
|
387
403
|
- spec/support/file_helper.rb
|
@@ -396,16 +412,19 @@ test_files:
|
|
396
412
|
- spec/transpec/file_finder_spec.rb
|
397
413
|
- spec/transpec/git_spec.rb
|
398
414
|
- spec/transpec/option_parser_spec.rb
|
415
|
+
- spec/transpec/processed_source_spec.rb
|
399
416
|
- spec/transpec/project_spec.rb
|
400
417
|
- spec/transpec/record_spec.rb
|
401
418
|
- spec/transpec/report_spec.rb
|
402
419
|
- spec/transpec/rspec_version_spec.rb
|
420
|
+
- spec/transpec/spec_suite_spec.rb
|
403
421
|
- spec/transpec/static_context_inspector_spec.rb
|
404
422
|
- spec/transpec/syntax/allow_spec.rb
|
405
423
|
- spec/transpec/syntax/be_boolean_spec.rb
|
406
424
|
- spec/transpec/syntax/be_close_spec.rb
|
407
425
|
- spec/transpec/syntax/current_example_spec.rb
|
408
426
|
- spec/transpec/syntax/double_spec.rb
|
427
|
+
- spec/transpec/syntax/example_group_spec.rb
|
409
428
|
- spec/transpec/syntax/example_spec.rb
|
410
429
|
- spec/transpec/syntax/expect_spec.rb
|
411
430
|
- spec/transpec/syntax/have_spec.rb
|
@@ -422,4 +441,3 @@ test_files:
|
|
422
441
|
- spec/transpec/syntax/should_spec.rb
|
423
442
|
- spec/transpec/util_spec.rb
|
424
443
|
- spec/transpec_spec.rb
|
425
|
-
has_rdoc:
|