Add spec for sending http request.
authorCheng Zhao <zcbenz@gmail.com>
Sun, 29 Sep 2013 12:57:57 +0000 (20:57 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sun, 29 Sep 2013 12:57:57 +0000 (20:57 +0800)
spec/web/http.coffee [new file with mode: 0644]

diff --git a/spec/web/http.coffee b/spec/web/http.coffee
new file mode 100644 (file)
index 0000000..896f3cf
--- /dev/null
@@ -0,0 +1,7 @@
+describe 'http', ->
+  describe 'sending request of http protocol urls', ->
+    it 'should not crash', (done) ->
+      $.ajax
+        url: 'http://127.0.0.1'
+        success: -> done()
+        error: -> done()