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 +2 -2
- data/lib/kata/version.rb +1 -1
- data/spec/kata_setup_spec.rb +3 -0
- data/spec/support/matchers/kata.rb +1 -1
- metadata +1 -1
data/lib/kata/base.rb
CHANGED
data/lib/kata/version.rb
CHANGED
data/spec/kata_setup_spec.rb
CHANGED
@@ -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
|