On 03/11/2010 05:28 PM, Jason Guiditta wrote:
> These tests should now fail, next patch in series will
> make them pass again. They reflect where the design
> changes will be, so it should be easy to see much of
> what to look for in the next patch.
> ---
> src/features/authentication.feature | 22
> +++++++++++++---------
> src/features/step_definitions/authentication.rb | 2 +-
> 2 files changed, 14 insertions(+), 10 deletions(-)
>
> diff --git a/src/features/authentication.feature
> b/src/features/authentication.feature
> index add2c95..0dea3ac 100644
> --- a/src/features/authentication.feature
> +++ b/src/features/authentication.feature
> @@ -3,16 +3,20 @@ Feature: User authentication
> As a user
> I must register and log in
>
> + @register
> Scenario: Register as new user
> Given I am on the homepage
> - When I follow "Register"
> + When I follow "Create one now"
> Then I should be on the new account page
> + And I should see "New Account"
> When I fill in the following:
> - | login | testuser |
> - | email | [email protected] |
> - | password | secret |
> - | password confirmation | secret |
> - And I press "Register"
> + | Choose a username | testuser |
> + | Choose a password | secret |
> + | Confirm password | secret |
> + | First name | Joe |
> + | Last name | Tester |
> + | Email | [email protected] |
> + And I press "Create Account"
> Then I should be on the account page
> And I should see "User registered!"
>
This feature is failing for me. When I run rake features (with all
patches in the set applied), I get
.......F-..........................
(::) failed steps (::)
expected the following element's content to include "User registered!":
dCloud
var $tabs, selected_tab;
$(document).ready(function(){
$.ajaxSetup({error: function(xhr) {$.jGrowl(xhr.status + ' ' +
xhr.statusText);}});
$('a[rel*=facebox]').livequery(function(){$(this).facebox();},function(){});
$('.dialog_tab_nav a').livequery(function(){
$(this).bind('click', function(){
$('.dialog_tab_nav li').removeClass('current');
$(this).parent().addClass('current');
$.ajax({
url: $(this).attr('href'),
type: 'GET',
data: {ajax:true},
dataType: 'html',
success: function(data) {
var wrapped_data =
$(data).find('div').filter('[id=dialog-content-area]');
var my_parent = $(this).parent();
$('#dialog-content-area').html($(data));
$('#facebox').css('left', $(window).width() /
2 - ($('#facebox table').width() / 2));
},
error: function(xhr) {$.jGrowl(xhr.status + ' '
+ xhr.statusText);}
});
return false;})},function(){});
$('ul.instance_action_list
li:first-child').addClass('first');
});
|
Log in
New Account
Choose a username
Change password
Confirm password
First name
Last name
Email
Cancel
(Spec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:144:in `/^(?:|I )should see
"([^\"]*)"$/'
features/authentication.feature:21:in `And I should see "User registered!"'
Failing Scenarios:
cucumber features/authentication.feature:7 # Scenario: Register as new user
5 scenarios (1 failed, 4 passed)
35 steps (1 failed, 1 skipped, 33 passed)
0m2.477s
rake aborted!
Command failed with status (1): [/usr/bin/ruby -I
"/home/mmorsi/.gem/ruby/1...]
(See full trace by running task with --trace)
-Mo
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel