Created
November 4, 2013 13:07
-
-
Save halfdan/7302162 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Post API | |
◦ can retrieve all posts: 127.0.0.1 - - [Mon, 04 Nov 2013 13:06:24 GMT] "GET /ghost/signin/ HTTP/1.1" 200 2670 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:24 GMT] "POST /ghost/signin/ HTTP/1.1" 200 22 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:25 GMT] "GET /ghost/api/v0.1/posts/ HTTP/1.1" 200 6632 "-" "-" | |
1) can retrieve all posts | |
◦ can retrieve a post: 127.0.0.1 - - [Mon, 04 Nov 2013 13:06:26 GMT] "GET /ghost/signin/ HTTP/1.1" 302 41 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:27 GMT] "GET /ghost/ HTTP/1.1" 200 5443 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:27 GMT] "POST /ghost/signin/ HTTP/1.1" 200 22 "-" "-" | |
✓ can retrieve a post | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:27 GMT] "GET /ghost/api/v0.1/posts/1/ HTTP/1.1" 200 6580 "-" "-" | |
◦ can create a new draft, publish post, update post: 127.0.0.1 - - [Mon, 04 Nov 2013 13:06:28 GMT] "GET /ghost/signin/ HTTP/1.1" 500 4806 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:29 GMT] "POST /ghost/signin/ HTTP/1.1" 200 22 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:29 GMT] "POST /ghost/api/v0.1/posts/ HTTP/1.1" 200 1387 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:29 GMT] "PUT /ghost/api/v0.1/posts/6/ HTTP/1.1" 200 1160 "-" "-" | |
✓ can create a new draft, publish post, update post (120ms) | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:29 GMT] "PUT /ghost/api/v0.1/posts/6/ HTTP/1.1" 200 1160 "-" "-" | |
◦ can delete a post: 127.0.0.1 - - [Mon, 04 Nov 2013 13:06:30 GMT] "GET /ghost/signin/ HTTP/1.1" 302 41 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:30 GMT] "GET /ghost/ HTTP/1.1" 200 5443 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:30 GMT] "POST /ghost/signin/ HTTP/1.1" 200 22 "-" "-" | |
✓ can delete a post (55ms) | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:30 GMT] "DELETE /ghost/api/v0.1/posts/1/ HTTP/1.1" 200 34 "-" "-" | |
◦ can't delete a non existent post: 127.0.0.1 - - [Mon, 04 Nov 2013 13:06:31 GMT] "GET /ghost/signin/ HTTP/1.1" 302 48 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:31 GMT] "GET /ghost/signup/ HTTP/1.1" 302 41 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:32 GMT] "GET /ghost/ HTTP/1.1" 200 4490 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:32 GMT] "POST /ghost/signin/ HTTP/1.1" 200 22 "-" "-" | |
✓ can't delete a non existent post | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:32 GMT] "DELETE /ghost/api/v0.1/posts/99/ HTTP/1.1" 404 26 "-" "-" | |
◦ can delete a new draft: 127.0.0.1 - - [Mon, 04 Nov 2013 13:06:32 GMT] "GET /ghost/signin/ HTTP/1.1" 302 48 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:32 GMT] "GET /ghost/signup/ HTTP/1.1" 302 41 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:32 GMT] "GET /ghost/ HTTP/1.1" 302 48 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:32 GMT] "GET /ghost/signup/ HTTP/1.1" 302 41 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:32 GMT] "GET /ghost/ HTTP/1.1" 302 48 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:32 GMT] "GET /ghost/signup/ HTTP/1.1" 302 41 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:32 GMT] "GET /ghost/ HTTP/1.1" 302 48 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:32 GMT] "GET /ghost/signup/ HTTP/1.1" 302 41 "-" "-" | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:32 GMT] "GET /ghost/ HTTP/1.1" 302 48 "-" "-" | |
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. | |
Trace | |
at Request.EventEmitter.addListener (events.js:160:15) | |
at Request.init (/home/vagrant/code/Ghost/node_modules/request/request.js:368:8) | |
at Request.onResponse (/home/vagrant/code/Ghost/node_modules/request/request.js:794:10) | |
at ClientRequest.g (events.js:175:14) | |
at ClientRequest.EventEmitter.emit (events.js:95:17) | |
at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1688:21) | |
at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:121:23) | |
at Socket.socketOnData [as ondata] (http.js:1583:20) | |
at TCP.onread (net.js:525:27) | |
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. | |
Trace | |
at Request.EventEmitter.addListener (events.js:160:15) | |
at Request.start (/home/vagrant/code/Ghost/node_modules/request/request.js:612:8) | |
at Request.end (/home/vagrant/code/Ghost/node_modules/request/request.js:1212:28) | |
at /home/vagrant/code/Ghost/node_modules/request/request.js:416:12 | |
at process._tickCallback (node.js:415:13) | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:32 GMT] "GET /ghost/signup/ HTTP/1.1" 302 41 "-" "-" | |
2) "before each" hook | |
12 passing (9s) | |
2 failing | |
127.0.0.1 - - [Mon, 04 Nov 2013 13:06:32 GMT] "GET /ghost/ HTTP/1.1" 302 48 "-" "-" | |
1) Post API can retrieve all posts: | |
Uncaught AssertionError: expected [ { id: 1, | |
uuid: 'c850d26d-0ed4-4f20-a8b3-8ac79ae70d93', | |
title: 'Welcome to Ghost', | |
slug: 'welcome-to-ghost', | |
markdown: 'You\'re in! Nice. We\'ve put together a little post to introduce you to the Ghost editor and get you started. Go ahead and edit this post to get going and learn how it all works!\n\n## Getting Started\n\nWriting in markdown is really easy. In the left hand panel of Ghost, you simply write as you normally would. Where appropriate, you can use *formatting* shortcuts to style your content. For example, a list:\n\n* Item number one\n* Item number two\n * A nested item\n* A final item\n\nor with numbers!\n\n1. Remember to buy some milk\n2. Drink the milk\n3. Tweet that I remembered to buy the milk, and drank it\n\n### Links\n\nWant to link to a source? No problem. If you paste in url, like http://ghost.org - it\'ll automatically be linked up. But if you want to customise your anchor text, you can do that too! Here\'s a link to [the Ghost website](http://ghost.org). Neat.\n\n### What about Images?\n\nImages work too! Already know the URL of the image you want to include in your article? Simply paste it in like this to make it show up:\n\n\n\nNot sure which image you want to use yet? That\'s ok too. Leave yourself a descriptive placeholder and keep writing. Come back later and drag and drop the image in to upload:\n\n![A bowl of bananas]\n\n\n### Quoting\n\nSometimes a link isn\'t enough, you want to quote someone on what they\'ve said. It was probably very wisdomous. Is wisdomous a word? Find out in a future release when we introduce spellcheck! For now - it\'s definitely a word.\n\n> Wisdomous - it\'s definitely a word.\n\n### Working with Code\n\nGot a streak of geek? We\'ve got you covered there, too. You can write inline `<code>` blocks really easily with back ticks. Want to show off something more comprehensive? 4 spaces of indentation gets you there.\n\n .awesome-thing {\n display: block;\n width: 100%;\n }\n\n### Ready for a Break? \n\nThrow 3 or more dashes down on any new line and you\'ve got yourself a fancy new divider. Aw yeah.\n\n---\n\n### Advanced Usage\n\nThere\'s one fantastic secret about Markdown. If you want, you can write plain old HTML and it\'ll still work! Very flexible.\n\n<input type="text" placeholder="I\'m an input field!" />\n\nThat should be enough to get you started. Have fun - and let us know what you think :)', | |
html: '<p>You\'re in! Nice. We\'ve put together a little post to introduce you to the Ghost editor and get you started. Go ahead and edit this post to get going and learn how it all works!</p>\n\n<h2 id="gettingstarted">Getting Started</h2>\n\n<p>Writing in markdown is really easy. In the left hand panel of Ghost, you simply write as you normally would. Where appropriate, you can use <em>formatting</em> shortcuts to style your content. For example, a list:</p>\n\n<ul>\n<li>Item number one</li>\n<li>Item number two\n<ul><li>A nested item</li></ul></li>\n<li>A final item</li>\n</ul>\n\n<p>or with numbers!</p>\n\n<ol>\n<li>Remember to buy some milk </li>\n<li>Drink the milk </li>\n<li>Tweet that I remembered to buy the milk, and drank it</li>\n</ol>\n\n<h3 id="links">Links</h3>\n\n<p>Want to link to a source? No problem. If you paste in url, like <a href=\'http://ghost.org\'>http://ghost.org</a> - it\'ll automatically be linked up. But if you want to customise your anchor text, you can do that too! Here\'s a link to <a href="http://ghost.org">the Ghost website</a>. Neat.</p>\n\n<h3 id="whataboutimages">What about Images?</h3>\n\n<p>Images work too! Already know the URL of the image you want to include in your article? Simply paste it in like this to make it show up:</p>\n\n<p><img src="http://tryghost.org/ghost.png" alt="The Ghost Logo" /></p>\n\n<p>Not sure which image you want to use yet? That\'s ok too. Leave yourself a descriptive placeholder and keep writing. Come back later and drag and drop the image in to upload:</p>\n\n<h3 id="quoting">Quoting</h3>\n\n<p>Sometimes a link isn\'t enough, you want to quote someone on what they\'ve said. It was probably very wisdomous. Is wisdomous a word? Find out in a future release when we introduce spellcheck! For now - it\'s definitely a word.</p>\n\n<blockquote>\n <p>Wisdomous - it\'s definitely a word.</p>\n</blockquote>\n\n<h3 id="workingwithcode">Working with Code</h3>\n\n<p>Got a streak of geek? We\'ve got you covered there, too. You can write inline <code><code></code> blocks really easily with back ticks. Want to show off something more comprehensive? 4 spaces of indentation gets you there.</p>\n\n<pre><code>.awesome-thing {\n display: block;\n width: 100%;\n}\n</code></pre>\n\n<h3 id="readyforabreak">Ready for a Break?</h3>\n\n<p>Throw 3 or more dashes down on any new line and you\'ve got yourself a fancy new divider. Aw yeah.</p>\n\n<hr />\n\n<h3 id="advancedusage">Advanced Usage</h3>\n\n<p>There\'s one fantastic secret about Markdown. If you want, you can write plain old HTML and it\'ll still work! Very flexible.</p>\n\n<p><input type="text" placeholder="I\'m an input field!" /></p>\n\n<p>That should be enough to get you started. Have fun - and let us know what you think :)</p>', | |
image: null, | |
featured: 0, | |
page: 0, | |
status: 'published', | |
language: 'en_US', | |
meta_title: null, | |
meta_description: null, | |
author_id: 1, | |
created_at: '2013-11-04T13:06:24.515Z', | |
created_by: 1, | |
updated_at: '2013-11-04T13:06:24.515Z', | |
updated_by: 1, | |
published_at: '2013-11-04T13:06:24.525Z', | |
published_by: 1, | |
author: | |
{ id: 1, | |
uuid: '671bf8ce-77ce-4bc6-aaec-d2cf100e93cc', | |
name: 'Joe Bloggs', | |
slug: 'joe-blogs', | |
email: '[email protected]', | |
image: null, | |
cover: null, | |
bio: null, | |
website: null, | |
location: null, | |
accessibility: null, | |
status: 'active', | |
language: 'en_US', | |
meta_title: null, | |
meta_description: null, | |
created_at: '2013-11-04T13:06:24.666Z', | |
updated_at: null }, | |
user: | |
{ id: 1, | |
uuid: '671bf8ce-77ce-4bc6-aaec-d2cf100e93cc', | |
name: 'Joe Bloggs', | |
slug: 'joe-blogs', | |
email: '[email protected]', | |
image: null, | |
cover: null, | |
bio: null, | |
website: null, | |
location: null, | |
accessibility: null, | |
status: 'active', | |
language: 'en_US', | |
meta_title: null, | |
meta_description: null, | |
created_at: '2013-11-04T13:06:24.666Z', | |
updated_at: null }, | |
tags: [ [Object] ] } ] to have a length of 5 but got 1 | |
at Object.Assertion.length (/home/vagrant/code/Ghost/node_modules/should/lib/should.js:617:10) | |
at Request._callback (/home/vagrant/code/Ghost/core/test/unit/api_posts_spec.js:59:44) | |
at Request.self.callback (/home/vagrant/code/Ghost/node_modules/request/request.js:129:22) | |
at Request.EventEmitter.emit (events.js:98:17) | |
at Request.<anonymous> (/home/vagrant/code/Ghost/node_modules/request/request.js:873:14) | |
at Request.EventEmitter.emit (events.js:117:20) | |
at IncomingMessage.<anonymous> (/home/vagrant/code/Ghost/node_modules/request/request.js:824:12) | |
at IncomingMessage.EventEmitter.emit (events.js:117:20) | |
at _stream_readable.js:920:16 | |
at process._tickCallback (node.js:415:13) | |
2) Post API "before each" hook: | |
Uncaught TypeError: Cannot call method 'match' of undefined | |
at Request._callback (/home/vagrant/code/Ghost/core/test/unit/api_posts_spec.js:37:38) | |
at self.callback (/home/vagrant/code/Ghost/node_modules/request/request.js:129:22) | |
at Request.EventEmitter.emit (events.js:95:17) | |
at Request.onResponse (/home/vagrant/code/Ghost/node_modules/request/request.js:752:12) | |
at ClientRequest.g (events.js:175:14) | |
at ClientRequest.EventEmitter.emit (events.js:95:17) | |
at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1688:21) | |
at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:121:23) | |
at Socket.socketOnData [as ondata] (http.js:1583:20) | |
at TCP.onread (net.js:525:27) | |
Warning: Use --force to continue. | |
Aborted due to warnings. | |
Stopping Express server | |
npm ERR! weird error 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment