[from now] 2012/09/01 13:47:36

diff --git a/.idea/.name b/.idea/.name
index 6e92651..9ba1ba3 100644
--- a/.idea/.name
+++ b/.idea/.name
@@ -1 +1 @@
-tddbc-yokohama-20
\ No newline at end of file
+tddbc-yokohama-2.0
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index 6c07785..77ebbfd 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="GradleSettings">
-    <option name="gradleHome" value="/usr/local/Cellar/gradle/1.1/libexec" />
+    <option name="gradleHome" value="/usr/local/Cellar/gradle/1.0/libexec" />
     <option name="linkedProjectPath" value="$PROJECT_DIR$/build.gradle" />
   </component>
 </project>
diff --git a/.idea/libraries/groovy_all_1_8_6.xml b/.idea/libraries/groovy_all_1_8_6.xml
index d2ee03f..15af2d3 100644
--- a/.idea/libraries/groovy_all_1_8_6.xml
+++ b/.idea/libraries/groovy_all_1_8_6.xml
@@ -1,11 +1,11 @@
 <component name="libraryTable">
   <library name="groovy-all-1.8.6">
     <CLASSES>
-      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-14/filestore/org.codehaus.groovy/groovy-all/1.8.6/jar/96a26bfa6e5aea2e3c46df44a19de93a2acd2366/groovy-all-1.8.6.jar!/" />
+      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-13/filestore/org.codehaus.groovy/groovy-all/1.8.6/jar/96a26bfa6e5aea2e3c46df44a19de93a2acd2366/groovy-all-1.8.6.jar!/" />
     </CLASSES>
     <JAVADOC />
     <SOURCES>
-      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-14/filestore/org.codehaus.groovy/groovy-all/1.8.6/source/2ac423ad404db3e3d9053c626d4c15a84cd18b73/groovy-all-1.8.6-sources.jar!/" />
+      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-13/filestore/org.codehaus.groovy/groovy-all/1.8.6/source/2ac423ad404db3e3d9053c626d4c15a84cd18b73/groovy-all-1.8.6-sources.jar!/" />
     </SOURCES>
   </library>
 </component>
\ No newline at end of file
diff --git a/.idea/libraries/hamcrest_core_1_2.xml b/.idea/libraries/hamcrest_core_1_2.xml
index 0effe47..2098d28 100644
--- a/.idea/libraries/hamcrest_core_1_2.xml
+++ b/.idea/libraries/hamcrest_core_1_2.xml
@@ -1,11 +1,11 @@
 <component name="libraryTable">
   <library name="hamcrest-core-1.2">
     <CLASSES>
-      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-14/filestore/org.hamcrest/hamcrest-core/1.2/jar/44d12ff84e43c7d0539131f75c92f2f88dba6549/hamcrest-core-1.2.jar!/" />
+      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-13/filestore/org.hamcrest/hamcrest-core/1.2/jar/44d12ff84e43c7d0539131f75c92f2f88dba6549/hamcrest-core-1.2.jar!/" />
     </CLASSES>
     <JAVADOC />
     <SOURCES>
-      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-14/filestore/org.hamcrest/hamcrest-core/1.2/source/e9be1c6a53b4d4e7564756e924a9fa8b1661ec6a/hamcrest-core-1.2-sources.jar!/" />
+      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-13/filestore/org.hamcrest/hamcrest-core/1.2/source/e9be1c6a53b4d4e7564756e924a9fa8b1661ec6a/hamcrest-core-1.2-sources.jar!/" />
     </SOURCES>
   </library>
 </component>
\ No newline at end of file
diff --git a/.idea/libraries/junit_dep_4_9.xml b/.idea/libraries/junit_dep_4_9.xml
index b24541c..e653d7f 100644
--- a/.idea/libraries/junit_dep_4_9.xml
+++ b/.idea/libraries/junit_dep_4_9.xml
@@ -1,11 +1,11 @@
 <component name="libraryTable">
   <library name="junit-dep-4.9">
     <CLASSES>
-      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-14/filestore/junit/junit-dep/4.9/jar/1013627e3993319870863a020034004717505815/junit-dep-4.9.jar!/" />
+      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-13/filestore/junit/junit-dep/4.9/jar/1013627e3993319870863a020034004717505815/junit-dep-4.9.jar!/" />
     </CLASSES>
     <JAVADOC />
     <SOURCES>
-      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-14/filestore/junit/junit-dep/4.9/source/84b903feddab2bd58f5ab2fc0c5c636df42df74d/junit-dep-4.9-sources.jar!/" />
+      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-13/filestore/junit/junit-dep/4.9/source/84b903feddab2bd58f5ab2fc0c5c636df42df74d/junit-dep-4.9-sources.jar!/" />
     </SOURCES>
   </library>
 </component>
\ No newline at end of file
diff --git a/.idea/libraries/spock_core_0_6_groovy_1_8.xml b/.idea/libraries/spock_core_0_6_groovy_1_8.xml
index 7c62d23..63e7149 100644
--- a/.idea/libraries/spock_core_0_6_groovy_1_8.xml
+++ b/.idea/libraries/spock_core_0_6_groovy_1_8.xml
@@ -1,11 +1,11 @@
 <component name="libraryTable">
   <library name="spock-core-0.6-groovy-1.8">
     <CLASSES>
-      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-14/filestore/org.spockframework/spock-core/0.6-groovy-1.8/jar/5c1bfb5058c3659ddc206052601704ccd30133a5/spock-core-0.6-groovy-1.8.jar!/" />
+      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-13/filestore/org.spockframework/spock-core/0.6-groovy-1.8/jar/5c1bfb5058c3659ddc206052601704ccd30133a5/spock-core-0.6-groovy-1.8.jar!/" />
     </CLASSES>
     <JAVADOC />
     <SOURCES>
-      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-14/filestore/org.spockframework/spock-core/0.6-groovy-1.8/source/e86c73c53149bbd8a260f7a486c4d9667be5b9d2/spock-core-0.6-groovy-1.8-sources.jar!/" />
+      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-13/filestore/org.spockframework/spock-core/0.6-groovy-1.8/source/e86c73c53149bbd8a260f7a486c4d9667be5b9d2/spock-core-0.6-groovy-1.8-sources.jar!/" />
     </SOURCES>
   </library>
 </component>
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 3dcbaf2..33f0a1a 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -3,7 +3,6 @@
   <component name="EntryPointsManager">
     <entry_points version="2.0" />
   </component>
-  <component name="IdProvider" IDEtalkID="C1CF16851D8006F75E3F1E83A3198426" />
   <component name="ProjectInspectionProfilesVisibleTreeState">
     <entry key="Project Default">
       <profile-state>
@@ -23,14 +22,44 @@
   <component name="ProjectResources">
     <default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>
   </component>
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" assert-keyword="true" jdk-15="true" project-jdk-name="1.7" project-jdk-type="JavaSDK">
-    <output url="file://$PROJECT_DIR$/build/classes" />
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" project-jdk-name="1.6" project-jdk-type="JavaSDK">
+    <output url="file://$PROJECT_DIR$/out" />
+  </component>
+  <component name="SvnConfiguration" maxAnnotateRevisions="500" myUseAcceleration="nothing" myAutoUpdateAfterCommit="false" cleanupOnStartRun="false">
+    <option name="USER" value="" />
+    <option name="PASSWORD" value="" />
+    <option name="mySSHConnectionTimeout" value="30000" />
+    <option name="mySSHReadTimeout" value="30000" />
+    <option name="LAST_MERGED_REVISION" />
+    <option name="MERGE_DRY_RUN" value="false" />
+    <option name="MERGE_DIFF_USE_ANCESTRY" value="true" />
+    <option name="UPDATE_LOCK_ON_DEMAND" value="false" />
+    <option name="IGNORE_SPACES_IN_MERGE" value="false" />
+    <option name="DETECT_NESTED_COPIES" value="true" />
+    <option name="CHECK_NESTED_FOR_QUICK_MERGE" value="false" />
+    <option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />
+    <option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />
+    <option name="FORCE_UPDATE" value="false" />
+    <option name="IGNORE_EXTERNALS" value="false" />
+    <myIsUseDefaultProxy>false</myIsUseDefaultProxy>
   </component>
-  <component name="WebServicesPlugin" addRequiredLibraries="true" />
   <component name="masterDetails">
     <states>
-      <state key="Copyright.UI">
+      <state key="GlobalLibrariesConfigurable.UI">
+        <settings>
+          <last-edited>groovy-2.0.0</last-edited>
+          <splitter-proportions>
+            <option name="proportions">
+              <list>
+                <option value="0.2" />
+              </list>
+            </option>
+          </splitter-proportions>
+        </settings>
+      </state>
+      <state key="JdkListConfigurable.UI">
         <settings>
+          <last-edited>1.6</last-edited>
           <splitter-proportions>
             <option name="proportions">
               <list>
@@ -52,6 +81,17 @@
           </splitter-proportions>
         </settings>
       </state>
+      <state key="ProjectLibrariesConfigurable.UI">
+        <settings>
+          <splitter-proportions>
+            <option name="proportions">
+              <list>
+                <option value="0.2" />
+              </list>
+            </option>
+          </splitter-proportions>
+        </settings>
+      </state>
     </states>
   </component>
 </project>
diff --git a/.idea/modules.xml b/.idea/modules.xml
index 6227a1f..490a50d 100644
--- a/.idea/modules.xml
+++ b/.idea/modules.xml
@@ -2,7 +2,7 @@
 <project version="4">
   <component name="ProjectModuleManager">
     <modules>
-      <module fileurl="file://$PROJECT_DIR$/tddbc-yokohama-20.iml" filepath="$PROJECT_DIR$/tddbc-yokohama-20.iml" />
+      <module fileurl="file://$PROJECT_DIR$/tddbc-yokohama-2.0.iml" filepath="$PROJECT_DIR$/tddbc-yokohama-2.0.iml" />
     </modules>
   </component>
 </project>
diff --git a/src/main/groovy/tddbc/VendingMachine.groovy b/src/main/groovy/tddbc/VendingMachine.groovy
index 87979d1..9b99b47 100644
--- a/src/main/groovy/tddbc/VendingMachine.groovy
+++ b/src/main/groovy/tddbc/VendingMachine.groovy
@@ -3,4 +3,8 @@ package tddbc
 class VendingMachine {

     Integer total = 0
+
+    def insert(Integer coin) {
+        total = coin
+    }
 }
diff --git a/src/test/groovy/tddbc/VendingMachineSpec.groovy b/src/test/groovy/tddbc/VendingMachineSpec.groovy
index 8e9c1f0..de796b7 100644
--- a/src/test/groovy/tddbc/VendingMachineSpec.groovy
+++ b/src/test/groovy/tddbc/VendingMachineSpec.groovy
@@ -11,4 +11,13 @@ class VendingMachineSpec extends Specification {
         vendingMachine.total == 0
     }

+    def "10円を入れて総計を取得すると10円を取得できる" () {
+        setup:
+        def vendingMachine = new VendingMachine()
+        when:
+        vendingMachine.insert(10)
+        then:
+        vendingMachine.total == 10
+    }
+
 }