Skip to content

Commit

Permalink
Empty Spamaway test for new user (publiclab#8469)
Browse files Browse the repository at this point in the history
  • Loading branch information
cypherean authored and wichanart committed Oct 26, 2021
1 parent 99ffbe0 commit 837e8f0
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 837e8f0

Please sign in to comment.