daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Charlottes-MacBook:bloccit Charlie$ npm test
  2.  
  3. > bloccit@1.0.0 test /Users/Charlie/Dev/bloc/bloccit
  4. > export NODE_ENV=test && jasmine
  5.  
  6. express-session deprecated req.secret; provide secret option src/config/main-config.js:15:13
  7. Started
  8. server is listening for requests on port 3000
  9. FFTypeError: Cannot read property 'title' of null
  10.     at Advertisement.findOne.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/advertisements_spec.js:61:32)
  11.     at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  12.     at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  13.     at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  14.     at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  15.     at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  16.     at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  17.     at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  18.     at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  19.     at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  20.     at runCallback (timers.js:705:18)
  21.     at tryOnImmediate (timers.js:676:5)
  22.     at processImmediate (timers.js:658:5)
  23. FFFFFFFTypeError: Cannot read property 'name' of null
  24.     at Flair.findOne.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/flairs_spec.js:62:24)
  25.     at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  26.     at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  27.     at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  28.     at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  29.     at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  30.     at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  31.     at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  32.     at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  33.     at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  34.     at runCallback (timers.js:705:18)
  35.     at tryOnImmediate (timers.js:676:5)
  36.     at processImmediate (timers.js:658:5)
  37. FFFFFFTypeError: Cannot read property 'title' of null
  38.     at Post.findOne.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/posts_spec.js:60:23)
  39.     at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  40.     at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  41.     at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  42.     at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  43.     at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  44.     at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  45.     at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  46.     at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  47.     at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  48.     at runCallback (timers.js:705:18)
  49.     at tryOnImmediate (timers.js:676:5)
  50.     at processImmediate (timers.js:658:5)
  51. F.FFFFFFFFFFFTypeError: Cannot read property 'title' of null
  52.     at Topic.findOne.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/topics_spec.js:63:24)
  53.     at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  54.     at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  55.     at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  56.     at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  57.     at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  58.     at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  59.     at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  60.     at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  61.     at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  62.     at runCallback (timers.js:705:18)
  63.     at tryOnImmediate (timers.js:676:5)
  64.     at processImmediate (timers.js:658:5)
  65. FFFFF.......
  66.  
  67. Failures:
  68. 1) routes : advertisements GET /advertisements should return a status code 200 and all ads
  69.   Message:
  70.     Expected 500 to be 200.
  71.   Stack:
  72.     Error: Expected 500 to be 200.
  73.         at <Jasmine>
  74.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/advertisements_spec.js:30:32)
  75.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  76.         at Request.emit (events.js:182:13)
  77.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  78.         at Request.emit (events.js:182:13)
  79.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  80.         at Object.onceWrapper (events.js:273:13)
  81.         at IncomingMessage.emit (events.js:187:15)
  82.         at endReadableNT (_stream_readable.js:1094:12)
  83.         at process._tickCallback (internal/process/next_tick.js:63:19)
  84.   Message:
  85.     Expected '<!DOCTYPE html>
  86.     <html lang="en">
  87.     <head>
  88.     <meta charset="utf-8">
  89.     <title>Error</title>
  90.     </head>
  91.     <body>
  92.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'First Advertisement'.
  93.   Stack:
  94.     Error: Expected '<!DOCTYPE html>
  95.         at <Jasmine>
  96.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/advertisements_spec.js:32:22)
  97.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  98.         at Request.emit (events.js:182:13)
  99.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  100.         at Request.emit (events.js:182:13)
  101.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  102.         at Object.onceWrapper (events.js:273:13)
  103.         at IncomingMessage.emit (events.js:187:15)
  104.         at endReadableNT (_stream_readable.js:1094:12)
  105.         at process._tickCallback (internal/process/next_tick.js:63:19)
  106.  
  107. 2) routes : advertisements GET /advertisements/new should render a new advertisement form
  108.   Message:
  109.     Expected '<!DOCTYPE html>
  110.     <html lang="en">
  111.     <head>
  112.     <meta charset="utf-8">
  113.     <title>Error</title>
  114.     </head>
  115.     <body>
  116.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'New Advertisement'.
  117.   Stack:
  118.     Error: Expected '<!DOCTYPE html>
  119.         at <Jasmine>
  120.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/advertisements_spec.js:42:22)
  121.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  122.         at Request.emit (events.js:182:13)
  123.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  124.         at Request.emit (events.js:182:13)
  125.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  126.         at Object.onceWrapper (events.js:273:13)
  127.         at IncomingMessage.emit (events.js:187:15)
  128.         at endReadableNT (_stream_readable.js:1094:12)
  129.         at process._tickCallback (internal/process/next_tick.js:63:19)
  130.  
  131. 3) routes : advertisements POST /advertisements/create should create a new topic and redirect
  132.   Message:
  133.     Expected 500 to be 303.
  134.   Stack:
  135.     Error: Expected 500 to be 303.
  136.         at <Jasmine>
  137.         at Advertisement.findOne.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/advertisements_spec.js:60:34)
  138.         at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  139.         at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  140.         at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  141.         at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  142.         at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  143.         at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  144.         at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  145.         at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  146.         at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  147.         at runCallback (timers.js:705:18)
  148.         at tryOnImmediate (timers.js:676:5)
  149.         at processImmediate (timers.js:658:5)
  150.  
  151. 4) routes : advertisements GET /advertisements/:id should render a view with the selected advertisement
  152.   Message:
  153.     Expected '<!DOCTYPE html>
  154.     <html lang="en">
  155.     <head>
  156.     <meta charset="utf-8">
  157.     <title>Error</title>
  158.     </head>
  159.     <body>
  160.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'First Advertisement'.
  161.   Stack:
  162.     Error: Expected '<!DOCTYPE html>
  163.         at <Jasmine>
  164.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/advertisements_spec.js:77:22)
  165.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  166.         at Request.emit (events.js:182:13)
  167.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  168.         at Request.emit (events.js:182:13)
  169.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  170.         at Object.onceWrapper (events.js:273:13)
  171.         at IncomingMessage.emit (events.js:187:15)
  172.         at endReadableNT (_stream_readable.js:1094:12)
  173.         at process._tickCallback (internal/process/next_tick.js:63:19)
  174.  
  175. 5) routes : advertisements POST /advertisements/:id/destroy should delete the advertisement with the associated ID
  176.   Message:
  177.     Expected 1 to be 0.
  178.   Stack:
  179.     Error: Expected 1 to be 0.
  180.         at <Jasmine>
  181.         at Advertisement.all.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/advertisements_spec.js:93:43)
  182.         at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  183.         at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  184.         at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  185.         at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  186.         at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  187.         at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  188.         at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  189.         at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  190.         at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  191.         at runCallback (timers.js:705:18)
  192.         at tryOnImmediate (timers.js:676:5)
  193.         at processImmediate (timers.js:658:5)
  194.  
  195. 6) routes : advertisements GET /advertisements/:id/edit should render a view with an edit advertisement form
  196.   Message:
  197.     Expected '<!DOCTYPE html>
  198.     <html lang="en">
  199.     <head>
  200.     <meta charset="utf-8">
  201.     <title>Error</title>
  202.     </head>
  203.     <body>
  204.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'Edit Advertisement'.
  205.   Stack:
  206.     Error: Expected '<!DOCTYPE html>
  207.         at <Jasmine>
  208.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/advertisements_spec.js:105:22)
  209.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  210.         at Request.emit (events.js:182:13)
  211.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  212.         at Request.emit (events.js:182:13)
  213.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  214.         at Object.onceWrapper (events.js:273:13)
  215.         at IncomingMessage.emit (events.js:187:15)
  216.         at endReadableNT (_stream_readable.js:1094:12)
  217.         at process._tickCallback (internal/process/next_tick.js:63:19)
  218.   Message:
  219.     Expected '<!DOCTYPE html>
  220.     <html lang="en">
  221.     <head>
  222.     <meta charset="utf-8">
  223.     <title>Error</title>
  224.     </head>
  225.     <body>
  226.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'First Advertisement'.
  227.   Stack:
  228.     Error: Expected '<!DOCTYPE html>
  229.         at <Jasmine>
  230.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/advertisements_spec.js:106:22)
  231.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  232.         at Request.emit (events.js:182:13)
  233.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  234.         at Request.emit (events.js:182:13)
  235.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  236.         at Object.onceWrapper (events.js:273:13)
  237.         at IncomingMessage.emit (events.js:187:15)
  238.         at endReadableNT (_stream_readable.js:1094:12)
  239.         at process._tickCallback (internal/process/next_tick.js:63:19)
  240.  
  241. 7) routes : advertisements POST /advertisements/:id/update should update the advertisement with the given values
  242.   Message:
  243.     Expected 'First Advertisement' to be 'First Ever Advertisement'.
  244.   Stack:
  245.     Error: Expected 'First Advertisement' to be 'First Ever Advertisement'.
  246.         at <Jasmine>
  247.         at Advertisement.findOne.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/advertisements_spec.js:127:39)
  248.         at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  249.         at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  250.         at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  251.         at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  252.         at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  253.         at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  254.         at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  255.         at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  256.         at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  257.         at runCallback (timers.js:705:18)
  258.         at tryOnImmediate (timers.js:676:5)
  259.         at processImmediate (timers.js:658:5)
  260.  
  261. 8) routes : flairs GET /flairs should return a status code 200 and get all flairs
  262.   Message:
  263.     Expected 500 to be 200.
  264.   Stack:
  265.     Error: Expected 500 to be 200.
  266.         at <Jasmine>
  267.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/flairs_spec.js:29:32)
  268.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  269.         at Request.emit (events.js:182:13)
  270.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  271.         at Request.emit (events.js:182:13)
  272.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  273.         at Object.onceWrapper (events.js:273:13)
  274.         at IncomingMessage.emit (events.js:187:15)
  275.         at endReadableNT (_stream_readable.js:1094:12)
  276.         at process._tickCallback (internal/process/next_tick.js:63:19)
  277.   Message:
  278.     Expected '<!DOCTYPE html>
  279.     <html lang="en">
  280.     <head>
  281.     <meta charset="utf-8">
  282.     <title>Error</title>
  283.     </head>
  284.     <body>
  285.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'Flairs'.
  286.   Stack:
  287.     Error: Expected '<!DOCTYPE html>
  288.         at <Jasmine>
  289.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/flairs_spec.js:31:22)
  290.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  291.         at Request.emit (events.js:182:13)
  292.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  293.         at Request.emit (events.js:182:13)
  294.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  295.         at Object.onceWrapper (events.js:273:13)
  296.         at IncomingMessage.emit (events.js:187:15)
  297.         at endReadableNT (_stream_readable.js:1094:12)
  298.         at process._tickCallback (internal/process/next_tick.js:63:19)
  299.   Message:
  300.     Expected '<!DOCTYPE html>
  301.     <html lang="en">
  302.     <head>
  303.     <meta charset="utf-8">
  304.     <title>Error</title>
  305.     </head>
  306.     <body>
  307.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'Honey'.
  308.   Stack:
  309.     Error: Expected '<!DOCTYPE html>
  310.         at <Jasmine>
  311.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/flairs_spec.js:32:22)
  312.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  313.         at Request.emit (events.js:182:13)
  314.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  315.         at Request.emit (events.js:182:13)
  316.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  317.         at Object.onceWrapper (events.js:273:13)
  318.         at IncomingMessage.emit (events.js:187:15)
  319.         at endReadableNT (_stream_readable.js:1094:12)
  320.         at process._tickCallback (internal/process/next_tick.js:63:19)
  321.  
  322. 9) routes : flairs GET /flairs/new should render a view with a new flair form
  323.   Message:
  324.     Expected '<!DOCTYPE html>
  325.     <html lang="en">
  326.     <head>
  327.     <meta charset="utf-8">
  328.     <title>Error</title>
  329.     </head>
  330.     <body>
  331.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'New Flair'.
  332.   Stack:
  333.     Error: Expected '<!DOCTYPE html>
  334.         at <Jasmine>
  335.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/flairs_spec.js:42:22)
  336.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  337.         at Request.emit (events.js:182:13)
  338.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  339.         at Request.emit (events.js:182:13)
  340.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  341.         at Object.onceWrapper (events.js:273:13)
  342.         at IncomingMessage.emit (events.js:187:15)
  343.         at endReadableNT (_stream_readable.js:1094:12)
  344.         at process._tickCallback (internal/process/next_tick.js:63:19)
  345.  
  346. 10) routes : flairs POST /flairs/create should create a new flair and redirect
  347.   Message:
  348.     Expected 500 to be 303.
  349.   Stack:
  350.     Error: Expected 500 to be 303.
  351.         at <Jasmine>
  352.         at Flair.findOne.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/flairs_spec.js:61:34)
  353.         at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  354.         at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  355.         at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  356.         at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  357.         at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  358.         at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  359.         at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  360.         at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  361.         at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  362.         at runCallback (timers.js:705:18)
  363.         at tryOnImmediate (timers.js:676:5)
  364.         at processImmediate (timers.js:658:5)
  365.  
  366. 11) routes : flairs GET /flairs/:id should render a view of the flair with the associated ID
  367.   Message:
  368.     Expected '<!DOCTYPE html>
  369.     <html lang="en">
  370.     <head>
  371.     <meta charset="utf-8">
  372.     <title>Error</title>
  373.     </head>
  374.     <body>
  375.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'Honey'.
  376.   Stack:
  377.     Error: Expected '<!DOCTYPE html>
  378.         at <Jasmine>
  379.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/flairs_spec.js:78:22)
  380.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  381.         at Request.emit (events.js:182:13)
  382.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  383.         at Request.emit (events.js:182:13)
  384.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  385.         at Object.onceWrapper (events.js:273:13)
  386.         at IncomingMessage.emit (events.js:187:15)
  387.         at endReadableNT (_stream_readable.js:1094:12)
  388.         at process._tickCallback (internal/process/next_tick.js:63:19)
  389.  
  390. 12) routes : flairs POST /flairs/:id/destroy should delete a flair with the associated ID
  391.   Message:
  392.     Expected 1 to be 0.
  393.   Stack:
  394.     Error: Expected 1 to be 0.
  395.         at <Jasmine>
  396.         at Flair.all.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/flairs_spec.js:94:35)
  397.         at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  398.         at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  399.         at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  400.         at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  401.         at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  402.         at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  403.         at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  404.         at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  405.         at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  406.         at runCallback (timers.js:705:18)
  407.         at tryOnImmediate (timers.js:676:5)
  408.         at processImmediate (timers.js:658:5)
  409.  
  410. 13) routes : flairs GET /flairs/:id/edit should render a view with a form to edit the flair with the associated ID
  411.   Message:
  412.     Expected '<!DOCTYPE html>
  413.     <html lang="en">
  414.     <head>
  415.     <meta charset="utf-8">
  416.     <title>Error</title>
  417.     </head>
  418.     <body>
  419.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'Edit Flair'.
  420.   Stack:
  421.     Error: Expected '<!DOCTYPE html>
  422.         at <Jasmine>
  423.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/flairs_spec.js:106:22)
  424.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  425.         at Request.emit (events.js:182:13)
  426.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  427.         at Request.emit (events.js:182:13)
  428.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  429.         at Object.onceWrapper (events.js:273:13)
  430.         at IncomingMessage.emit (events.js:187:15)
  431.         at endReadableNT (_stream_readable.js:1094:12)
  432.         at process._tickCallback (internal/process/next_tick.js:63:19)
  433.   Message:
  434.     Expected '<!DOCTYPE html>
  435.     <html lang="en">
  436.     <head>
  437.     <meta charset="utf-8">
  438.     <title>Error</title>
  439.     </head>
  440.     <body>
  441.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'Honey'.
  442.   Stack:
  443.     Error: Expected '<!DOCTYPE html>
  444.         at <Jasmine>
  445.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/flairs_spec.js:107:22)
  446.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  447.         at Request.emit (events.js:182:13)
  448.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  449.         at Request.emit (events.js:182:13)
  450.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  451.         at Object.onceWrapper (events.js:273:13)
  452.         at IncomingMessage.emit (events.js:187:15)
  453.         at endReadableNT (_stream_readable.js:1094:12)
  454.         at process._tickCallback (internal/process/next_tick.js:63:19)
  455.  
  456. 14) routes : flairs POST /flairs/:id/update should update the assiociated flair with the given values
  457.   Message:
  458.     Expected 'red' to be 'auburn'.
  459.   Stack:
  460.     Error: Expected 'red' to be 'auburn'.
  461.         at <Jasmine>
  462.         at Flair.findOne.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/flairs_spec.js:127:31)
  463.         at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  464.         at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  465.         at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  466.         at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  467.         at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  468.         at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  469.         at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  470.         at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  471.         at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  472.         at runCallback (timers.js:705:18)
  473.         at tryOnImmediate (timers.js:676:5)
  474.         at processImmediate (timers.js:658:5)
  475.  
  476. 15) routes : posts GET /topics/:topicId/posts/new should render a new post form
  477.   Message:
  478.     Expected '<!DOCTYPE html>
  479.     <html lang="en">
  480.     <head>
  481.     <meta charset="utf-8">
  482.     <title>Error</title>
  483.     </head>
  484.     <body>
  485.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'New Post'.
  486.   Stack:
  487.     Error: Expected '<!DOCTYPE html>
  488.         at <Jasmine>
  489.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/posts_spec.js:41:22)
  490.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  491.         at Request.emit (events.js:182:13)
  492.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  493.         at Request.emit (events.js:182:13)
  494.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  495.         at Object.onceWrapper (events.js:273:13)
  496.         at IncomingMessage.emit (events.js:187:15)
  497.         at endReadableNT (_stream_readable.js:1094:12)
  498.         at process._tickCallback (internal/process/next_tick.js:63:19)
  499.  
  500. 16) routes : posts POST /topics/:topicId/posts/create should create a new post with associated topic ID
  501.   Message:
  502.     Expected null not to be null.
  503.   Stack:
  504.     Error: Expected null not to be null.
  505.         at <Jasmine>
  506.         at Post.findOne.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/posts_spec.js:59:28)
  507.         at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  508.         at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  509.         at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  510.         at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  511.         at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  512.         at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  513.         at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  514.         at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  515.         at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  516.         at runCallback (timers.js:705:18)
  517.         at tryOnImmediate (timers.js:676:5)
  518.         at processImmediate (timers.js:658:5)
  519.  
  520. 17) routes : posts GET /topics/:topicId/posts/:id should render a view with the selected post
  521.   Message:
  522.     Expected '<!DOCTYPE html>
  523.     <html lang="en">
  524.     <head>
  525.     <meta charset="utf-8">
  526.     <title>Error</title>
  527.     </head>
  528.     <body>
  529.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'Snowball fighting'.
  530.   Stack:
  531.     Error: Expected '<!DOCTYPE html>
  532.         at <Jasmine>
  533.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/posts_spec.js:98:22)
  534.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  535.         at Request.emit (events.js:182:13)
  536.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  537.         at Request.emit (events.js:182:13)
  538.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  539.         at Object.onceWrapper (events.js:273:13)
  540.         at IncomingMessage.emit (events.js:187:15)
  541.         at endReadableNT (_stream_readable.js:1094:12)
  542.         at process._tickCallback (internal/process/next_tick.js:63:19)
  543.  
  544. 18) routes : posts POST /topics/:topicId/posts/:id/destroy should delete the post with the associated ID
  545.   Message:
  546.     Expected [object SequelizeInstance:Post] to be null.
  547.   Stack:
  548.     Error: Expected [object SequelizeInstance:Post] to be null.
  549.         at <Jasmine>
  550.         at Post.findById.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/posts_spec.js:111:24)
  551.         at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  552.         at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  553.         at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  554.         at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  555.         at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  556.         at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  557.         at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  558.         at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  559.         at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  560.         at runCallback (timers.js:705:18)
  561.         at tryOnImmediate (timers.js:676:5)
  562.         at processImmediate (timers.js:658:5)
  563.  
  564. 19) routes : posts GET /topics/:topicId/posts/:id/edit should render a view with an update post form
  565.   Message:
  566.     Expected '<!DOCTYPE html>
  567.     <html lang="en">
  568.     <head>
  569.     <meta charset="utf-8">
  570.     <title>Error</title>
  571.     </head>
  572.     <body>
  573.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'Edit Post'.
  574.   Stack:
  575.     Error: Expected '<!DOCTYPE html>
  576.         at <Jasmine>
  577.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/posts_spec.js:122:22)
  578.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  579.         at Request.emit (events.js:182:13)
  580.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  581.         at Request.emit (events.js:182:13)
  582.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  583.         at Object.onceWrapper (events.js:273:13)
  584.         at IncomingMessage.emit (events.js:187:15)
  585.         at endReadableNT (_stream_readable.js:1094:12)
  586.         at process._tickCallback (internal/process/next_tick.js:63:19)
  587.   Message:
  588.     Expected '<!DOCTYPE html>
  589.     <html lang="en">
  590.     <head>
  591.     <meta charset="utf-8">
  592.     <title>Error</title>
  593.     </head>
  594.     <body>
  595.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'Snowball fighting'.
  596.   Stack:
  597.     Error: Expected '<!DOCTYPE html>
  598.         at <Jasmine>
  599.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/posts_spec.js:123:22)
  600.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  601.         at Request.emit (events.js:182:13)
  602.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  603.         at Request.emit (events.js:182:13)
  604.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  605.         at Object.onceWrapper (events.js:273:13)
  606.         at IncomingMessage.emit (events.js:187:15)
  607.         at endReadableNT (_stream_readable.js:1094:12)
  608.         at process._tickCallback (internal/process/next_tick.js:63:19)
  609.  
  610. 20) routes : posts POST /topics/:topicId/posts/:id/update should return a status code 302
  611.   Message:
  612.     Expected 500 to be 302.
  613.   Stack:
  614.     Error: Expected 500 to be 302.
  615.         at <Jasmine>
  616.         at Request.request.post [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/posts_spec.js:138:32)
  617.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  618.         at Request.emit (events.js:182:13)
  619.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  620.         at Request.emit (events.js:182:13)
  621.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  622.         at Object.onceWrapper (events.js:273:13)
  623.         at IncomingMessage.emit (events.js:187:15)
  624.         at endReadableNT (_stream_readable.js:1094:12)
  625.         at process._tickCallback (internal/process/next_tick.js:63:19)
  626.  
  627. 21) routes : posts POST /topics/:topicId/posts/:id/update should update the post with the given values
  628.   Message:
  629.     Expected 'Snowball fighting' to be 'Snowman Building Competition'.
  630.   Stack:
  631.     Error: Expected 'Snowball fighting' to be 'Snowman Building Competition'.
  632.         at <Jasmine>
  633.         at Post.findOne.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/posts_spec.js:156:30)
  634.         at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  635.         at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  636.         at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  637.         at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  638.         at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  639.         at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  640.         at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  641.         at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  642.         at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  643.         at runCallback (timers.js:705:18)
  644.         at tryOnImmediate (timers.js:676:5)
  645.         at processImmediate (timers.js:658:5)
  646.  
  647. 22) routes : static GET / should return status code 200 and have 'Welcome to Bloccit' in the body of the response
  648.   Message:
  649.     Expected 500 to be 200.
  650.   Stack:
  651.     Error: Expected 500 to be 200.
  652.         at <Jasmine>
  653.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/static_spec.js:11:32)
  654.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  655.         at Request.emit (events.js:182:13)
  656.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  657.         at Request.emit (events.js:182:13)
  658.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  659.         at Object.onceWrapper (events.js:273:13)
  660.         at IncomingMessage.emit (events.js:187:15)
  661.         at endReadableNT (_stream_readable.js:1094:12)
  662.         at process._tickCallback (internal/process/next_tick.js:63:19)
  663.   Message:
  664.     Expected '<!DOCTYPE html>
  665.     <html lang="en">
  666.     <head>
  667.     <meta charset="utf-8">
  668.     <title>Error</title>
  669.     </head>
  670.     <body>
  671.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'Welcome to Bloccit'.
  672.   Stack:
  673.     Error: Expected '<!DOCTYPE html>
  674.         at <Jasmine>
  675.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/static_spec.js:12:22)
  676.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  677.         at Request.emit (events.js:182:13)
  678.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  679.         at Request.emit (events.js:182:13)
  680.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  681.         at Object.onceWrapper (events.js:273:13)
  682.         at IncomingMessage.emit (events.js:187:15)
  683.         at endReadableNT (_stream_readable.js:1094:12)
  684.         at process._tickCallback (internal/process/next_tick.js:63:19)
  685.  
  686. 23) routes : static GET /marco should return status code 200
  687.   Message:
  688.     Expected 500 to be 200.
  689.   Stack:
  690.     Error: Expected 500 to be 200.
  691.         at <Jasmine>
  692.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/static_spec.js:21:32)
  693.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  694.         at Request.emit (events.js:182:13)
  695.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  696.         at Request.emit (events.js:182:13)
  697.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  698.         at Object.onceWrapper (events.js:273:13)
  699.         at IncomingMessage.emit (events.js:187:15)
  700.         at endReadableNT (_stream_readable.js:1094:12)
  701.         at process._tickCallback (internal/process/next_tick.js:63:19)
  702.  
  703. 24) routes : static GET /marco should contain polo in body
  704.   Message:
  705.     Expected '<!DOCTYPE html>
  706.     <html lang="en">
  707.     <head>
  708.     <meta charset="utf-8">
  709.     <title>Error</title>
  710.     </head>
  711.     <body>
  712.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'polo'.
  713.   Stack:
  714.     Error: Expected '<!DOCTYPE html>
  715.         at <Jasmine>
  716.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/static_spec.js:28:26)
  717.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  718.         at Request.emit (events.js:182:13)
  719.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  720.         at Request.emit (events.js:182:13)
  721.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  722.         at Object.onceWrapper (events.js:273:13)
  723.         at IncomingMessage.emit (events.js:187:15)
  724.         at endReadableNT (_stream_readable.js:1094:12)
  725.         at process._tickCallback (internal/process/next_tick.js:63:19)
  726.  
  727. 25) routes : static GET /about should return status code 200
  728.   Message:
  729.     Expected 500 to be 200.
  730.   Stack:
  731.     Error: Expected 500 to be 200.
  732.         at <Jasmine>
  733.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/static_spec.js:37:32)
  734.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  735.         at Request.emit (events.js:182:13)
  736.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  737.         at Request.emit (events.js:182:13)
  738.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  739.         at Object.onceWrapper (events.js:273:13)
  740.         at IncomingMessage.emit (events.js:187:15)
  741.         at endReadableNT (_stream_readable.js:1094:12)
  742.         at process._tickCallback (internal/process/next_tick.js:63:19)
  743.  
  744. 26) routes : topics GET /topics should return a status code of 200 and all topics
  745.   Message:
  746.     Expected 500 to be 200.
  747.   Stack:
  748.     Error: Expected 500 to be 200.
  749.         at <Jasmine>
  750.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/topics_spec.js:30:32)
  751.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  752.         at Request.emit (events.js:182:13)
  753.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  754.         at Request.emit (events.js:182:13)
  755.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  756.         at Object.onceWrapper (events.js:273:13)
  757.         at IncomingMessage.emit (events.js:187:15)
  758.         at endReadableNT (_stream_readable.js:1094:12)
  759.         at process._tickCallback (internal/process/next_tick.js:63:19)
  760.   Message:
  761.     Expected '<!DOCTYPE html>
  762.     <html lang="en">
  763.     <head>
  764.     <meta charset="utf-8">
  765.     <title>Error</title>
  766.     </head>
  767.     <body>
  768.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'Topics'.
  769.   Stack:
  770.     Error: Expected '<!DOCTYPE html>
  771.         at <Jasmine>
  772.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/topics_spec.js:32:22)
  773.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  774.         at Request.emit (events.js:182:13)
  775.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  776.         at Request.emit (events.js:182:13)
  777.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  778.         at Object.onceWrapper (events.js:273:13)
  779.         at IncomingMessage.emit (events.js:187:15)
  780.         at endReadableNT (_stream_readable.js:1094:12)
  781.         at process._tickCallback (internal/process/next_tick.js:63:19)
  782.   Message:
  783.     Expected '<!DOCTYPE html>
  784.     <html lang="en">
  785.     <head>
  786.     <meta charset="utf-8">
  787.     <title>Error</title>
  788.     </head>
  789.     <body>
  790.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'JS Frameworks'.
  791.   Stack:
  792.     Error: Expected '<!DOCTYPE html>
  793.         at <Jasmine>
  794.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/topics_spec.js:33:22)
  795.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  796.         at Request.emit (events.js:182:13)
  797.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  798.         at Request.emit (events.js:182:13)
  799.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  800.         at Object.onceWrapper (events.js:273:13)
  801.         at IncomingMessage.emit (events.js:187:15)
  802.         at endReadableNT (_stream_readable.js:1094:12)
  803.         at process._tickCallback (internal/process/next_tick.js:63:19)
  804.  
  805. 27) routes : topics GET /topics/new should render a new topic form
  806.   Message:
  807.     Expected '<!DOCTYPE html>
  808.     <html lang="en">
  809.     <head>
  810.     <meta charset="utf-8">
  811.     <title>Error</title>
  812.     </head>
  813.     <body>
  814.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'New Topic'.
  815.   Stack:
  816.     Error: Expected '<!DOCTYPE html>
  817.         at <Jasmine>
  818.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/topics_spec.js:43:22)
  819.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  820.         at Request.emit (events.js:182:13)
  821.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  822.         at Request.emit (events.js:182:13)
  823.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  824.         at Object.onceWrapper (events.js:273:13)
  825.         at IncomingMessage.emit (events.js:187:15)
  826.         at endReadableNT (_stream_readable.js:1094:12)
  827.         at process._tickCallback (internal/process/next_tick.js:63:19)
  828.  
  829. 28) routes : topics POST /topics/create should create a new topic and redirect
  830.   Message:
  831.     Expected 500 to be 303.
  832.   Stack:
  833.     Error: Expected 500 to be 303.
  834.         at <Jasmine>
  835.         at Topic.findOne.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/topics_spec.js:62:34)
  836.         at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  837.         at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  838.         at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  839.         at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  840.         at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  841.         at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  842.         at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  843.         at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  844.         at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  845.         at runCallback (timers.js:705:18)
  846.         at tryOnImmediate (timers.js:676:5)
  847.         at processImmediate (timers.js:658:5)
  848.  
  849. 29) routes : topics GET /topics/:id should render a view with the selected topic
  850.   Message:
  851.     Expected '<!DOCTYPE html>
  852.     <html lang="en">
  853.     <head>
  854.     <meta charset="utf-8">
  855.     <title>Error</title>
  856.     </head>
  857.     <body>
  858.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'JS Frameworks'.
  859.   Stack:
  860.     Error: Expected '<!DOCTYPE html>
  861.         at <Jasmine>
  862.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/topics_spec.js:79:22)
  863.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  864.         at Request.emit (events.js:182:13)
  865.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  866.         at Request.emit (events.js:182:13)
  867.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  868.         at Object.onceWrapper (events.js:273:13)
  869.         at IncomingMessage.emit (events.js:187:15)
  870.         at endReadableNT (_stream_readable.js:1094:12)
  871.         at process._tickCallback (internal/process/next_tick.js:63:19)
  872.  
  873. 30) routes : topics POST /topics/:id/destroy should delete the topic with the associated ID
  874.   Message:
  875.     Expected 1 to be 0.
  876.   Stack:
  877.     Error: Expected 1 to be 0.
  878.         at <Jasmine>
  879.         at Topic.all.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/topics_spec.js:95:35)
  880.         at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  881.         at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  882.         at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  883.         at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  884.         at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  885.         at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  886.         at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  887.         at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  888.         at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  889.         at runCallback (timers.js:705:18)
  890.         at tryOnImmediate (timers.js:676:5)
  891.         at processImmediate (timers.js:658:5)
  892.  
  893. 31) routes : topics GET /topics/:id/edit should render a view with an edit topic form
  894.   Message:
  895.     Expected '<!DOCTYPE html>
  896.     <html lang="en">
  897.     <head>
  898.     <meta charset="utf-8">
  899.     <title>Error</title>
  900.     </head>
  901.     <body>
  902.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'Edit Topic'.
  903.   Stack:
  904.     Error: Expected '<!DOCTYPE html>
  905.         at <Jasmine>
  906.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/topics_spec.js:107:22)
  907.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  908.         at Request.emit (events.js:182:13)
  909.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  910.         at Request.emit (events.js:182:13)
  911.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  912.         at Object.onceWrapper (events.js:273:13)
  913.         at IncomingMessage.emit (events.js:187:15)
  914.         at endReadableNT (_stream_readable.js:1094:12)
  915.         at process._tickCallback (internal/process/next_tick.js:63:19)
  916.   Message:
  917.     Expected '<!DOCTYPE html>
  918.     <html lang="en">
  919.     <head>
  920.     <meta charset="utf-8">
  921.     <title>Error</title>
  922.     </head>
  923.     <body>
  924.     <pre>Error: secret option required for sessions<br> &nbsp; &nbsp;at session (/Users/Charlie/Dev/bloc/bloccit/node_modules/express-session/index.js:199:12)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at trim_prefix (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:317:13)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:284:7<br> &nbsp; &nbsp;at Function.process_params (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/Users/Charlie/Dev/bloc/bloccit/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at /Users/Charlie/Dev/bloc/bloccit/node_modules/express-validator/lib/express_validator.js:250:5<br> &nbsp; &nbsp;at Layer.handle [as handle_requ ... to contain 'JS Frameworks'.
  925.   Stack:
  926.     Error: Expected '<!DOCTYPE html>
  927.         at <Jasmine>
  928.         at Request.request.get [as _callback] (/Users/Charlie/Dev/bloc/bloccit/spec/integration/topics_spec.js:108:22)
  929.         at Request.self.callback (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:186:22)
  930.         at Request.emit (events.js:182:13)
  931.         at Request.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1163:10)
  932.         at Request.emit (events.js:182:13)
  933.         at IncomingMessage.<anonymous> (/Users/Charlie/Dev/bloc/bloccit/node_modules/request/request.js:1085:12)
  934.         at Object.onceWrapper (events.js:273:13)
  935.         at IncomingMessage.emit (events.js:187:15)
  936.         at endReadableNT (_stream_readable.js:1094:12)
  937.         at process._tickCallback (internal/process/next_tick.js:63:19)
  938.  
  939. 32) routes : topics POST /topics/:id/update should update the topic with the given values
  940.   Message:
  941.     Expected 'JS Frameworks' to be 'Javascript Frameworks'.
  942.   Stack:
  943.     Error: Expected 'JS Frameworks' to be 'Javascript Frameworks'.
  944.         at <Jasmine>
  945.         at Topic.findOne.then (/Users/Charlie/Dev/bloc/bloccit/spec/integration/topics_spec.js:129:31)
  946.         at tryCatcher (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
  947.         at Promise._settlePromiseFromHandler (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
  948.         at Promise._settlePromise (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
  949.         at Promise._settlePromise0 (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
  950.         at Promise._settlePromises (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/promise.js:694:18)
  951.         at _drainQueueStep (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:138:12)
  952.         at _drainQueue (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:131:9)
  953.         at Async._drainQueues (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:147:5)
  954.         at Immediate.Async.drainQueues [as _onImmediate] (/Users/Charlie/Dev/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
  955.         at runCallback (timers.js:705:18)
  956.         at tryOnImmediate (timers.js:676:5)
  957.         at processImmediate (timers.js:658:5)
  958.  
  959. 40 specs, 32 failures
  960. Finished in 3.717 seconds
  961. npm ERR! Test failed.  See above for more details.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top