Commit 06ef9625f465fae4193802a07d534750a25af6eb

Authored by Daniela Feitosa
1 parent f453f1a9

Fixed html and test syntax

(ActionItem3009)
app/views/account/_signup_form.rhtml
@@ -191,7 +191,7 @@ jQuery(function($) { @@ -191,7 +191,7 @@ jQuery(function($) {
191 }); 191 });
192 192
193 function fill_username(element){ 193 function fill_username(element){
194 - jQuery('#url-check').html('<p><span class=\"checking\"><%= _('This login name is available') %></span></p>') 194 + jQuery('#url-check').html("<p><span class='checking'><%= _('This login name is available') %></span></p>")
195 jQuery('#user_login').val(element).addClass('validated').removeClass('invalid') 195 jQuery('#user_login').val(element).addClass('validated').removeClass('invalid')
196 } 196 }
197 </script> 197 </script>
features/signup.feature
@@ -52,9 +52,9 @@ Feature: signup @@ -52,9 +52,9 @@ Feature: signup
52 Given the following users 52 Given the following users
53 | login | name | 53 | login | name |
54 | joaosilva | joao silva | 54 | joaosilva | joao silva |
55 - Given i am logged in as "joaosilva"  
56 - And i go to signup page  
57 - Then i should be on joaosilva's control panel 55 + Given I am logged in as "joaosilva"
  56 + And I go to signup page
  57 + Then I should be on joaosilva's control panel
58 58
59 @selenium 59 @selenium
60 Scenario: user cannot register without a name 60 Scenario: user cannot register without a name
public/javascripts/signup_form.js
1 function verifyLoginLoad() { 1 function verifyLoginLoad() {
2 jQuery('#user_login').removeClass('available unavailable valid validated invalid checking').addClass('checking'); 2 jQuery('#user_login').removeClass('available unavailable valid validated invalid checking').addClass('checking');
3 - jQuery('#url-check').html('<p><span class="checking">Checking availability of login name...</span></p>'); 3 + jQuery('#url-check').html('<p><span class="checking"><%= _('Checking availability of login name...') %></span></p>');
4 } 4 }
5 5
6 function verifyLoginAjax(value) { 6 function verifyLoginAjax(value) {
@@ -20,4 +20,4 @@ jQuery(document).ready(function(){ @@ -20,4 +20,4 @@ jQuery(document).ready(function(){
20 jQuery("#user_login").blur(function(){ 20 jQuery("#user_login").blur(function(){
21 verifyLoginAjax(this.value); 21 verifyLoginAjax(this.value);
22 }); 22 });
23 -});  
24 \ No newline at end of file 23 \ No newline at end of file
  24 +});