![Railsフロントエンド技術の今とこれから - Hack Your Design!](https://cdn-ak-scissors.b.st-hatena.com/image/square/d6346b0fc38f9a1a4de95dd29ec0bccbe8f9b7ce/height=288;version=1;width=512/https%3A%2F%2Fblog.toshimaru.net%2Fimages%2Fposts%2Froppongirb3%2Froppongirb-3.jpg)
昨日のRails Developers Meetupで綺麗なテストコードの書き方について発表してきました。 Rails Developers Meetup #1(東京会場) - connpass 資料はこちら 余談 もともと数年前くらいから、テストコードの書き方についてまとめたいなーと思っていたのですがなかなかキッカケがなくて手を付けられていませんでした。今回のミートアップ駆動で一通り形にするところまでいけて今とてもスッキリした気持ちです 😇 もっと多くの人にテストコードの書き方を意識してもらいたいので、また機会があればどこかで喋りたいですね。 昨日発表した内容はGitHubリポジトリにまとめたものの一部です。綺麗なテストコードの書き方について詳しく知りたい方は下記のリンクからどうぞ。 willnet/rspec-style-guide お願い 今回まとめた内容はあくまで僕が考えるテスト
This webpage was generated by the domain owner using Sedo Domain Parking. Disclaimer: Sedo maintains no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo nor does it constitute or imply its association, endorsement or recommendation.
module GrapeSampleApi class Application < Rails::Application config.active_record.raise_in_transactional_callbacks = true config.autoload_paths += %W(#{config.root}/lib/api)#←追記 end end # lib/api/api.rb # coding: utf-8 class API < Grape::API # APIアクセスに接頭語を不可 # ex) http://localhost:3000/api prefix "api" # APIアクセスにバージョン情報を付加 # ex) http://localhost:3000/api/vl/ version 'v1', :using => :path # 未指定の場合に
$ bin/rails g scaffold user name:string mail:string password:string invoke active_record create db/migrate/20151214145437_create_users.rb create app/models/user.rb invoke test_unit create test/models/user_test.rb create test/fixtures/users.yml invoke api_resource_route route resources :users, except: [:new, :edit] invoke scaffold_controller create app/controllers/users_controller.rb invoke test_un
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く