visit new_admin_user_session_path
fill_in('admin_user_email', :with => "admin@example.com")
fill_in('admin_user_password', :with => "password")
click_button('Login')
page.must_have_content("Signed in successfully")
テストを実行した後、次のようなエラーが発生します。
MiniTest::Assertion: expected there to be text "Signed in successfully" in "Invalid email or password. Shakti Login Email*Password*Remember me Forgot your password?".
.rvm/gems/ruby-1.9.3-p362/gems/capybara_minitest_spec-1.0.0/lib/capybara_minitest_spec.rb:42:in `block in define_assertion'
(eval):6:in `must_have_content'