The assert_content comes from capybara, and gives a much more helpful error message if the test fails.
11 lines
224 B
Ruby
11 lines
224 B
Ruby
require "application_system_test_case"
|
|
|
|
class UserSignupTest < ApplicationSystemTestCase
|
|
test "Sign up from login page" do
|
|
visit login_path
|
|
|
|
click_on "Register now"
|
|
|
|
assert_content "Confirm Password"
|
|
end
|
|
end
|