Skip to content

Kadai4 yuuyamad - #61

Open
ghost wants to merge 7 commits into
masterfrom
kadai4-yuuyamad
Open

Kadai4 yuuyamad#61
ghost wants to merge 7 commits into
masterfrom
kadai4-yuuyamad

Conversation

@ghost

@ghost ghost commented May 31, 2018

Copy link
Copy Markdown

課題4

  • JSON形式でおみくじの結果を返す
  • 正月(1/1-1/3)だけ大吉にする
  • ハンドラのテストを書いてみる
  • おみくじのAPIは下記で取得可能です。
    GET /api/v1/omikuji

  • ハンドラの正月のテストは日付の関数をグローバル変数に代入して、テストときにスタブにする方法で実施しています
    参考:http://matope.hatenablog.com/entry/2014/08/14/111143

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants