rails 㨠rspec ã§ã¢ããªã±ã¼ã·ã§ã³æ¸ãã¦ãæã«åº¦ã å°ããã¨ããããã§ããã©ã ä¾ãã°ã # app/models/user.rb def hoge fuga = cars.find_by(...) .method_a(...) .method_b(...) end # spec/models/user_spec.rb it do ecpext { user.hoge } .to change { user.reload.name }.from("aaa").to("bbb") .and change { ... } .and change { ... } end ã¿ãããªæãã§æ¸ããã§ãããã ã§ãããã rubocop ããã«è¦ã¦ãããã¨æããã¡ãããã§ããã 種é¡ã¨ãã¦ã¯ Layout/MultilineMethodCallIndentation ã«ãªããã§ããã©ã app
{{#tags}}- {{label}}
{{/tags}}