From 06ef9625f465fae4193802a07d534750a25af6eb Mon Sep 17 00:00:00 2001 From: Daniela Feitosa Date: Sun, 13 Apr 2014 13:13:24 +0000 Subject: [PATCH] Fixed html and test syntax --- app/views/account/_signup_form.rhtml | 2 +- features/signup.feature | 6 +++--- public/javascripts/signup_form.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/account/_signup_form.rhtml b/app/views/account/_signup_form.rhtml index b197e6a..396da53 100644 --- a/app/views/account/_signup_form.rhtml +++ b/app/views/account/_signup_form.rhtml @@ -191,7 +191,7 @@ jQuery(function($) { }); function fill_username(element){ - jQuery('#url-check').html('

<%= _('This login name is available') %>

') + jQuery('#url-check').html("

<%= _('This login name is available') %>

") jQuery('#user_login').val(element).addClass('validated').removeClass('invalid') } diff --git a/features/signup.feature b/features/signup.feature index 912ec16..fceac9d 100644 --- a/features/signup.feature +++ b/features/signup.feature @@ -52,9 +52,9 @@ Feature: signup Given the following users | login | name | | joaosilva | joao silva | - Given i am logged in as "joaosilva" - And i go to signup page - Then i should be on joaosilva's control panel + Given I am logged in as "joaosilva" + And I go to signup page + Then I should be on joaosilva's control panel @selenium Scenario: user cannot register without a name diff --git a/public/javascripts/signup_form.js b/public/javascripts/signup_form.js index a08abfa..65730a0 100644 --- a/public/javascripts/signup_form.js +++ b/public/javascripts/signup_form.js @@ -1,6 +1,6 @@ function verifyLoginLoad() { jQuery('#user_login').removeClass('available unavailable valid validated invalid checking').addClass('checking'); - jQuery('#url-check').html('

Checking availability of login name...

'); + jQuery('#url-check').html('

<%= _('Checking availability of login name...') %>

'); } function verifyLoginAjax(value) { @@ -20,4 +20,4 @@ jQuery(document).ready(function(){ jQuery("#user_login").blur(function(){ verifyLoginAjax(this.value); }); -}); \ No newline at end of file +}); -- libgit2 0.21.2