Skip to content

Commit

Permalink
Empty Spamaway test for new user (#8469)
Browse files Browse the repository at this point in the history
  • Loading branch information
cypherean authored Oct 6, 2020
1 parent 9756491 commit eab9696
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/system/signup_spamaway_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
require "application_system_test_case"

class SignupFormTest < ApplicationSystemTestCase
def setup
visit "/"
end

test "the user is not registered without passing spam " do
visit "/signup"

assert_difference 'User.count', 0 do
#Creating a user and leaving the spamaway check empty
fill_in("username-signup", with: "abc")
fill_in("email", with: "[email protected]")
fill_in("password1", with: "secretive")
fill_in("password-confirmation", with: "secretive")

find("#create-form #signup-button").click()
end

end
end

0 comments on commit eab9696

Please sign in to comment.