Commit 8b8f7d45

mo k <mo@mokhan.ca>
2012-09-18 17:59:40
move greeting.js to app/assets/javascripts/utilty
1 parent 3f66950
Changed files (2)
app
assets
javascripts
spec
javascripts
app/assets/javascripts/utility/greeting.js
@@ -0,0 +1,11 @@
+var Greeting = (function(){
+  var Greeting = function(){
+    this.greet = function(name) {
+      return 'Hi ' + name;
+    };
+    
+  };
+  return function(){
+    return new Greeting();
+  };
+})();
spec/javascripts/greeting_spec.js
@@ -8,13 +8,3 @@ describe ("Greeting", function() {
     });
   });
 });
-var Greeting = (function(){
-  var Greeting = function(){
-    this.greet = function(name){
-      return "hi " + name;
-    };
-  };
-  return function(){
-    return new Greeting();
-  };
-})();