This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
カレーのレシピ | |
誰でもできる、美味しいカレーの作り方です。旦那も息子もこのカレーが大好物。 | |
ポイントは玉ねぎと人参はミキサーで細かくしてしまうところ。逆にコクのある美味しいカレーになります。 | |
レシピの作者 | |
山田サチ子さん |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'Post #create' do | |
context '有効なパラメータの場合' do | |
let(:create_user) { -> { post :create, user: attributes_for(:user) } } | |
it 'リクエストは302 リダイレクトとなること' do | |
create_user.call | |
expect(response.status).to eq 302 | |
end | |
it 'データベースに新しいユーザーが登録されること' do |