Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

First test of the json

  • Loading branch information...
commit fe5bc807019e3f0210d0533f6941b36898cd1a2b 1 parent 4b7615c
@triggity triggity authored
View
1  .rvmrc
@@ -0,0 +1 @@
+rvm use 1.9.3
View
3  cloudflare.json
@@ -1,3 +1,4 @@
{
- "main":"public/javascripts/sample_app.js"
+ "main":"public/javascripts/sample_app.js",
+ "name":"Sample App"
}
View
6 test/sample-spec.js
@@ -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
5 test/suite.html
@@ -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());
Please sign in to comment.
Something went wrong with that request. Please try again.