次の例を検討してください。
describe UsersController do
it "works for something" do
# some other code
get :show, {facebook_id: 1000000000}
# some other code
put :update, {facebook_id: 1000000000, birthday: "2001-01-01"}
# some other code
get :show, {facebook_id: 1000000000}
# some other code
end
it "works for another thing" do
# some other code
get :show, {facebook_id: 1000000000}
# some other code
end
end
、など{facebook_id: 1000000000}
を簡単に書けるように乾燥させるにはどうすればよいですか?get :show
put :update, {birthday: "2001-01-01"}