メソッドの出力の結果が、true か false のどちらでも返ってくる可能性がある場合、assert 文を書く時は true の場合だけで良いのだろうか
まず、基本の考えとしてなぜテストをするのか?というのがあります。
# Sidekiq interaction and startup script | |
files: | |
"/opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_sidekiq.sh": | |
mode: "000755" | |
content: | | |
#!/bin/bash | |
. /opt/elasticbeanstalk/hooks/common.sh | |
. /opt/elasticbeanstalk/support/envvars |
var AWS = require('aws-sdk'); | |
var Client = require('amazon-api-gateway-client').Client; | |
var RequestLogger = require('stackable-fetcher').RequestLogger; | |
var ResponseLogger = require('stackable-fetcher').ResponseLogger; | |
var client = new Client({ | |
accessKeyId: AWS.config.credentials.accessKeyId, | |
region: 'us-east-1', | |
secretAccessKey: AWS.config.credentials.secretAccessKey, | |
}).use(RequestLogger).use(ResponseLogger); |
package main | |
import ( | |
"encoding/json" | |
"io/ioutil" | |
"log" | |
"net/http" | |
) | |
type Message struct { |
var async_task = function (msg, delay) { | |
var dfd = $.Deferred(); | |
setTimeout( function () { | |
if ( msg !== 'l' ) { | |
dfd.resolve('resolved:' + msg); | |
} | |
else { | |
dfd.reject('rejected:' + msg); | |
} |
Install any of the Mongo add-ons available at http://addons.heroku.com
Vendor the Mongo driver with your application. You can download it here:
https://github.com/wuputah/heroku-libraries/raw/master/php/mongo/mongo.so
Add it to a folder like "ext".