Permalink
Browse files

First test of the json

  • Loading branch information...
1 parent 4b7615c commit fe5bc807019e3f0210d0533f6941b36898cd1a2b Michael Sofaer committed May 7, 2012
Showing with 14 additions and 1 deletion.
  1. +1 −0 .rvmrc
  2. +2 −1 cloudflare.json
  3. +6 −0 test/sample-spec.js
  4. +5 −0 test/suite.html
View
1 .rvmrc
@@ -0,0 +1 @@
+rvm use 1.9.3
View
@@ -1,3 +1,4 @@
{
- "main":"public/javascripts/sample_app.js"
+ "main":"public/javascripts/sample_app.js",
+ "name":"Sample App"
}
View
@@ -3,3 +3,9 @@ describe(["sample_app"], function(sample){
expect(sample.name).toEqual("Sample App");
})
})
+
+describe(["app_json"], function(json){
+ it("should have a name", function(){
+ expect(json.name).toEqual("Sample App")
+ })
+})
View
@@ -26,6 +26,11 @@
})
window.define = CloudFlare.define;
window.require = CloudFlare.require;
+
+ CloudFlare.define("app_json", [], function(){
+ return json;
+ })
+
CloudFlare.require(["/test/sample-spec.js"], function(){
jasmine.getEnv().addReporter(new jasmine.TrivialReporter());

0 comments on commit fe5bc80

Please sign in to comment.