Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kadai4 yuuyamad #61

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Kadai4 yuuyamad #61

wants to merge 7 commits into from

Conversation

ghost
Copy link

@ghost ghost commented May 31, 2018

課題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