2016-05-17から1日間の記事一覧
最初の行、そうかー rescue でこういう if 文が書けるのかー。と思った。 if (ActionDispatch::Integration::Session.instance_method(:process_with_kwargs) rescue false) let(:send_request) do send http_method, path, params: request_body, headers: …
最初の行、そうかー rescue でこういう if 文が書けるのかー。と思った。 if (ActionDispatch::Integration::Session.instance_method(:process_with_kwargs) rescue false) let(:send_request) do send http_method, path, params: request_body, headers: …