kata 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/lib/kata/base.rb CHANGED
@@ -32,11 +32,11 @@ module Kata
32
32
  end
33
33
 
34
34
  def example txt
35
- puts indent + '- ' + txt
35
+ puts indent + '- ' + "example: #{txt}"
36
36
  end
37
37
 
38
38
  def detail txt
39
- puts indent + '- ' + txt
39
+ puts indent + '- ' + "detail: #{txt}"
40
40
  end
41
41
 
42
42
  private
data/lib/kata/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kata
2
- VERSION = '1.0.6'
2
+ VERSION = '1.0.7'
3
3
  end
@@ -1,5 +1,6 @@
1
1
  require 'spec_helper'
2
2
  require 'kata/setup'
3
+ require 'fileutils'
3
4
 
4
5
  module Kata
5
6
  describe Setup do
@@ -25,6 +26,8 @@ module Kata
25
26
  Dir[File.join(subject.repo_name, '**', '*.rb')].size.should == 4
26
27
  Dir[File.join(subject.repo_name, 'README')].size.should == 1
27
28
  Dir[File.join(subject.repo_name, '.rspec')].size.should == 1
29
+
30
+ FileUtils.remove_entry_secure subject.repo_name
28
31
  end
29
32
  end
30
33
  end
@@ -11,7 +11,7 @@ RSpec::Matchers.define :have_requirement do |summary, requirement|
11
11
  end
12
12
 
13
13
  RSpec::Matchers.define :have_examples do |summary, requirement, examples|
14
- example_str = examples.unshift('').join("\n - ")
14
+ example_str = examples.unshift('').join("\n - example: ")
15
15
  match do |string|
16
16
  string.split(/completed \(Y|n\)/)[0].strip == "#{summary}\n #{requirement}#{example_str}"
17
17
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: kata
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.6
5
+ version: 1.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Wes