transpec 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +35 -3
- data/README.md.erb +35 -3
- data/lib/transpec/cli.rb +50 -4
- data/lib/transpec/commit_message.rb +25 -0
- data/lib/transpec/git.rb +18 -0
- data/lib/transpec/record.rb +28 -0
- data/lib/transpec/report.rb +109 -0
- data/lib/transpec/rewriter.rb +17 -8
- data/lib/transpec/syntax.rb +25 -22
- data/lib/transpec/syntax/be_close.rb +6 -0
- data/lib/transpec/syntax/double.rb +5 -0
- data/lib/transpec/syntax/matcher.rb +17 -1
- data/lib/transpec/syntax/method_stub.rb +40 -8
- data/lib/transpec/syntax/raise_error.rb +17 -0
- data/lib/transpec/syntax/send_node_syntax.rb +4 -0
- data/lib/transpec/syntax/should.rb +23 -2
- data/lib/transpec/syntax/should_receive.rb +54 -2
- data/lib/transpec/version.rb +2 -2
- data/spec/.rubocop.yml +1 -1
- data/spec/support/shared_context.rb +10 -0
- data/spec/transpec/cli_spec.rb +76 -29
- data/spec/transpec/commit_message_spec.rb +63 -0
- data/spec/transpec/configuration_spec.rb +1 -1
- data/spec/transpec/git_spec.rb +114 -38
- data/spec/transpec/record_spec.rb +18 -0
- data/spec/transpec/report_spec.rb +89 -0
- data/spec/transpec/rewriter_spec.rb +5 -0
- data/spec/transpec/syntax/be_close_spec.rb +10 -1
- data/spec/transpec/syntax/double_spec.rb +10 -0
- data/spec/transpec/syntax/matcher_spec.rb +31 -0
- data/spec/transpec/syntax/method_stub_spec.rb +53 -44
- data/spec/transpec/syntax/raise_error_spec.rb +64 -24
- data/spec/transpec/syntax/should_receive_spec.rb +67 -7
- data/spec/transpec/syntax/should_spec.rb +26 -0
- data/tasks/test.rake +27 -12
- metadata +11 -2
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: 0.
|
4
|
+
version: 0.2.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: 2013-10-
|
11
|
+
date: 2013-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -189,9 +189,12 @@ files:
|
|
189
189
|
- lib/transpec/ast/node.rb
|
190
190
|
- lib/transpec/ast/scanner.rb
|
191
191
|
- lib/transpec/cli.rb
|
192
|
+
- lib/transpec/commit_message.rb
|
192
193
|
- lib/transpec/configuration.rb
|
193
194
|
- lib/transpec/context.rb
|
194
195
|
- lib/transpec/git.rb
|
196
|
+
- lib/transpec/record.rb
|
197
|
+
- lib/transpec/report.rb
|
195
198
|
- lib/transpec/rewriter.rb
|
196
199
|
- lib/transpec/syntax.rb
|
197
200
|
- lib/transpec/syntax/able_to_allow_no_message.rb
|
@@ -215,9 +218,12 @@ files:
|
|
215
218
|
- spec/transpec/ast/node_spec.rb
|
216
219
|
- spec/transpec/ast/scanner_spec.rb
|
217
220
|
- spec/transpec/cli_spec.rb
|
221
|
+
- spec/transpec/commit_message_spec.rb
|
218
222
|
- spec/transpec/configuration_spec.rb
|
219
223
|
- spec/transpec/context_spec.rb
|
220
224
|
- spec/transpec/git_spec.rb
|
225
|
+
- spec/transpec/record_spec.rb
|
226
|
+
- spec/transpec/report_spec.rb
|
221
227
|
- spec/transpec/rewriter_spec.rb
|
222
228
|
- spec/transpec/syntax/be_close_spec.rb
|
223
229
|
- spec/transpec/syntax/double_spec.rb
|
@@ -264,9 +270,12 @@ test_files:
|
|
264
270
|
- spec/transpec/ast/node_spec.rb
|
265
271
|
- spec/transpec/ast/scanner_spec.rb
|
266
272
|
- spec/transpec/cli_spec.rb
|
273
|
+
- spec/transpec/commit_message_spec.rb
|
267
274
|
- spec/transpec/configuration_spec.rb
|
268
275
|
- spec/transpec/context_spec.rb
|
269
276
|
- spec/transpec/git_spec.rb
|
277
|
+
- spec/transpec/record_spec.rb
|
278
|
+
- spec/transpec/report_spec.rb
|
270
279
|
- spec/transpec/rewriter_spec.rb
|
271
280
|
- spec/transpec/syntax/be_close_spec.rb
|
272
281
|
- spec/transpec/syntax/double_spec.rb
|