codersdojo 1.2.05 → 1.2.06

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.
@@ -0,0 +1,19 @@
1
+ import groovy.util.GroovyTestCase
2
+
3
+ class %Kata_file%Test extends GroovyTestCase {
4
+
5
+ void test%Kata_file%() {
6
+ def toTest = new %Kata_file%()
7
+ assert "fixme" == toTest.%kata_file%()
8
+ }
9
+
10
+ }
11
+
12
+ class %Kata_file% {
13
+
14
+ def %kata_file%() {
15
+ "foo"
16
+ }
17
+
18
+ }
19
+
@@ -3,9 +3,9 @@ These files were created:
3
3
  run-once.%sh% runs your tests once
4
4
  run-endless.%sh% runs your tests endlessly via run-once.%sh%
5
5
 
6
- Run run-endless.%sh% and start your kata. (On Mac/Linux you have to call ./run-endless.%sh%.)
6
+ Run run-endless.%sh% and start your kata. (On Mac/Linux you have to call ./run-endless.sh.)
7
7
 
8
8
  Assumptions:
9
9
  - Java and Groovy is installed on your system, 'groovy' is in the path and GROOVY_HOME is set.
10
10
  - groovy.jar is placed in the 'lib' directory.
11
- - The whole kata source code is in the one %Kata_file%.groovy.
11
+ - The whole kata source code is in the one %Kata_file%Test.groovy.
@@ -1 +1 @@
1
- codersdojo start run-once.sh %Kata_file%.groovy
1
+ codersdojo start run-once.sh %Kata_file%Test.groovy
@@ -1 +1 @@
1
- groovy -cp lib/groovy.jar %Kata_file%.groovy
1
+ groovy -cp lib/groovy.jar %Kata_file%Test.groovy
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codersdojo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 5
10
- version: 1.2.05
9
+ - 6
10
+ version: 1.2.06
11
11
  platform: ruby
12
12
  authors:
13
13
  - CodersDojo-Team
@@ -97,7 +97,7 @@ files:
97
97
  - templates/forth.tester/run-endless.%sh%
98
98
  - templates/forth.tester/run-once.%sh%
99
99
  - templates/forth.tester/tester.fr
100
- - templates/groovy.gunit/%Kata_file%.groovy
100
+ - templates/groovy.gunit/%Kata_file%Test.groovy
101
101
  - templates/groovy.gunit/README
102
102
  - templates/groovy.gunit/run-endless.sh
103
103
  - templates/groovy.gunit/run-once.sh
@@ -1,11 +0,0 @@
1
- import groovy.util.GroovyTestCase
2
-
3
-
4
- class PrimeFactorsTest extends GroovyTestCase {
5
-
6
-
7
- void testFoo() {
8
- assert 2 == 2
9
- }
10
-
11
- }