/^”(.*)”ϦϯΫΛΫϦοΫ͢Δ$/ do |link| click_link(link) end When /࠶ಡΈࠐΈ͢Δ/ do visit request.request_uri end When /^”(.*)”ʹ”(.*)”ͱೖྗ͢Δ$/ do |field, value| fill_in(field, with: value) end ͳͲͳͲ... 1212݄25Ր༵
“user_display_name”ʹ”user1”ͱೖྗ͢Δ ɹ͔ͭ “user_password_confirmation”ʹ”testtest”ͱೖྗ͢Δ ɹ͔ͭ “Sign up”ϘλϯΛΫϦοΫ͢Δ ɹͳΒ “You have signed up successfully.”ͱදࣔ͞Ε͍ͯΔ͜ͱ ͰΘ͔ΓͮΒ͍͠ɺ࠶ར༻ੑʹ͍͠ (3ͭલͷεϥΠυͱൺͯΈΑ͏) 1212݄25Ր༵
invalid params” do it “re-render the ‘new’ template” do User.any_instance.stub(:save).and_return(false) post :create, {user: {name: “test”}} response.should render_template(“new”) end end end end ※stub(:save).and_return(false) ࣮ࡍʹsave͞ΕΔ͔͜͜Ͱςετ ͠ͳ͍ɻِͷϝιουʹΑͬͯfalse Λฦͤ͞Δɻ ※should ςετͷ֩ͷ෦ɻ͜ΕΛ ΤΫεϖΫςʔγϣϯͱ͔Ξαʔ γϣϯͱݴ͏ɻ 1212݄25Ր༵