transpec 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/README.md +35 -3
  4. data/README.md.erb +35 -3
  5. data/lib/transpec/cli.rb +50 -4
  6. data/lib/transpec/commit_message.rb +25 -0
  7. data/lib/transpec/git.rb +18 -0
  8. data/lib/transpec/record.rb +28 -0
  9. data/lib/transpec/report.rb +109 -0
  10. data/lib/transpec/rewriter.rb +17 -8
  11. data/lib/transpec/syntax.rb +25 -22
  12. data/lib/transpec/syntax/be_close.rb +6 -0
  13. data/lib/transpec/syntax/double.rb +5 -0
  14. data/lib/transpec/syntax/matcher.rb +17 -1
  15. data/lib/transpec/syntax/method_stub.rb +40 -8
  16. data/lib/transpec/syntax/raise_error.rb +17 -0
  17. data/lib/transpec/syntax/send_node_syntax.rb +4 -0
  18. data/lib/transpec/syntax/should.rb +23 -2
  19. data/lib/transpec/syntax/should_receive.rb +54 -2
  20. data/lib/transpec/version.rb +2 -2
  21. data/spec/.rubocop.yml +1 -1
  22. data/spec/support/shared_context.rb +10 -0
  23. data/spec/transpec/cli_spec.rb +76 -29
  24. data/spec/transpec/commit_message_spec.rb +63 -0
  25. data/spec/transpec/configuration_spec.rb +1 -1
  26. data/spec/transpec/git_spec.rb +114 -38
  27. data/spec/transpec/record_spec.rb +18 -0
  28. data/spec/transpec/report_spec.rb +89 -0
  29. data/spec/transpec/rewriter_spec.rb +5 -0
  30. data/spec/transpec/syntax/be_close_spec.rb +10 -1
  31. data/spec/transpec/syntax/double_spec.rb +10 -0
  32. data/spec/transpec/syntax/matcher_spec.rb +31 -0
  33. data/spec/transpec/syntax/method_stub_spec.rb +53 -44
  34. data/spec/transpec/syntax/raise_error_spec.rb +64 -24
  35. data/spec/transpec/syntax/should_receive_spec.rb +67 -7
  36. data/spec/transpec/syntax/should_spec.rb +26 -0
  37. data/tasks/test.rake +27 -12
  38. 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.1.3
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-03 00:00:00.000000000 Z
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