Skip to content

Commit

Permalink
[webui] Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Aug 28, 2015
1 parent d47e444 commit 9bd8735
Showing 1 changed file with 28 additions and 29 deletions.
57 changes: 28 additions & 29 deletions src/api/test/functional/webui/signup_test.rb
@@ -1,37 +1,36 @@
require_relative '../../test_helper'

class Webui::SignupTest < Webui::IntegrationTest
def signup_user page
# Signup a user
visit page
fill_in 'login', with: 'eisendieter'
fill_in 'email', with: 'dieter.eilts@werder.de'
fill_in 'pwd', with: 'alemao'
click_button('Sign Up')
end

def signup_user page
# Signup a user
visit page
fill_in 'login', with: 'eisendieter'
fill_in 'email', with: 'dieter.eilts@werder.de'
fill_in 'pwd', with: 'alemao'
click_button('Sign Up')
end
def test_signup_allow
signup_user root_path
flash_message.must_equal 'The account "eisendieter" is now active.'
end

def test_signup_allow
signup_user root_path
flash_message.must_equal 'The account "eisendieter" is now active.'
end
def test_signup_confirmation
# Configure confirmation for signups
::Configuration.stubs(:registration).returns("confirmation")
signup_user root_path
flash_message.must_equal 'Thank you for signing up! An admin has to confirm your account now. Please be patient.'
end

def test_signup_confirmation
# Configure confirmation for signups
::Configuration.stubs(:registration).returns("confirmation")
signup_user root_path
flash_message.must_equal 'Thank you for signing up! An admin has to confirm your account now. Please be patient.'
end

def test_signup_deny
# Configure denying signups
::Configuration.stubs(:registration).returns("deny")
visit user_register_user_path
page.must_have_content "Sorry, sign up is disabled"
# but still works for admin
login_king
visit user_register_user_path
page.must_have_content "Sign Up for an Open Build Service account"
end
def test_signup_deny
# Configure denying signups
::Configuration.stubs(:registration).returns("deny")
visit user_register_user_path
page.must_have_content "Sorry, sign up is disabled"
# but still works for admin
login_king
visit user_register_user_path
page.must_have_content "Sign Up for an Open Build Service account"
end
end

0 comments on commit 9bd8735

Please sign in to comment.