タケユー・ウェブ日報

Ruby on Rails や Flutter といったWeb・モバイルアプリ技術を武器にお客様のビジネス立ち上げを支援する、タケユー・ウェブ株式会社の技術ブログです。

2013-08-29から1日間の記事一覧

Rails RSpec のコントローラテストでデフォルトのパラメータを設定できるようにしてみる。

以前RSpecの拡張の練習がてら、こういうのを require 'spec_helper' describe Api::SpotsController do describe "GET 'index'" do it "returns http success" do get 'index', format: 'json' response.should be_success end end describe "GET 'show'" do…