
34
3
章 レガシーシステムに
UI
テストを追加する
end
describe 'after saving the user' do
#
前のステップで作成したユーザーのデータを取得
let(:user) { User.find_by(email: 'user@example.com') }
#
アサーションを行う
it { should have_content(user.name) }
it { should have_selector('.alert-success') }
end
end
end
Name, Email, Password
Web
UI
3
.
1
ステップ
1
:正しい画面にいることを確認する
HTML ...