Don't show skip link if user.getting_started == false

This commit is contained in:
Matt Baker 2010-11-13 18:13:55 -08:00 committed by Raphael
parent 597258615b
commit b2e6caafed
2 changed files with 9 additions and 2 deletions

View file

@ -61,5 +61,6 @@
- if @step > 1
= link_to t('back'), getting_started_path(:step => @step-1), :class => "button", :id => "previous_step"
.bottom_notification
= link_to "#{t('.skip')} →", '#', :id => "getting_started_skip"
- if @user.getting_started
.bottom_notification
= link_to "#{t('.skip')} →", '#', :id => "getting_started_skip"

View file

@ -29,11 +29,17 @@ Feature: new user registration
When I follow "Save and continue"
Then I should see "You're all set up, O!"
And I should not see "skip getting started"
When I follow "Continue on to your everyone page, an overview of all of your aspects."
Then I should be on the aspects page
And I should see "bring them to Diaspora!"
Scenario: new user skips the setup wizard and returns to the setup wizard
Given /^a user goes through the setup wizard$/
When I go to getting_started
Then I should not see "skip getting started"
Scenario: new user skips the setup wizard
When I follow "skip getting started"
And I wait for the aspects page to load