Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
882389e396
5 changed files with 25 additions and 36 deletions
14
features/manages_aspects.feature
Normal file
14
features/manages_aspects.feature
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
@aspects @javascript
|
||||
Feature: User manages aspects
|
||||
In order to share with a limited group
|
||||
As a User
|
||||
I want to create new aspects
|
||||
|
||||
Scenario: creating an aspect
|
||||
Given I am signed in
|
||||
When I follow "Manage" in the header
|
||||
And I follow "Add a new aspect"
|
||||
And I fill in "Name" with "Dorm Mates" in the modal window
|
||||
And I press "Create" in the modal window
|
||||
Then I should see "Dorm Mates" in the header
|
||||
And I should see "Your aspect 'Dorm Mates' is empty."
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
@javascript
|
||||
Feature: new user registration
|
||||
|
||||
Scenario: new user sees profile wizard
|
||||
Background:
|
||||
When I go to the new user registration page
|
||||
And I fill in "Username" with "ohai"
|
||||
And I fill in "Email" with "ohai@example.com"
|
||||
|
|
@ -11,6 +11,7 @@ Feature: new user registration
|
|||
Then I should be on the getting started page
|
||||
And I should see "Welcome to Diaspora!"
|
||||
|
||||
Scenario: new user goes through the setup wizard
|
||||
When I fill in "person_profile_first_name" with "O"
|
||||
And I fill in "person_profile_last_name" with "Hai"
|
||||
And I press "Save and continue"
|
||||
|
|
@ -32,17 +33,8 @@ Feature: new user registration
|
|||
Then I should be on the home page
|
||||
And I should see "We know you have friends, bring them to Diaspora!"
|
||||
|
||||
@wip
|
||||
Scenario: new user can skip the profile wizard
|
||||
When I go to the new user registration page
|
||||
And I fill in "Username" with "ohai"
|
||||
And I fill in "Email" with "ohai@example.com"
|
||||
And I fill in "Password" with "secret"
|
||||
And I fill in "Password confirmation" with "secret"
|
||||
And I press "Sign up"
|
||||
Then I should be on the getting started page
|
||||
And I should see "Welcome to Diaspora!"
|
||||
|
||||
Scenario: new user skips the setup wizard
|
||||
When I follow "skip getting started"
|
||||
And I wait for the home page to load
|
||||
Then I should be on the home page
|
||||
And I should see "We know you have friends, bring them to Diaspora!"
|
||||
|
|
|
|||
|
|
@ -20,4 +20,8 @@ Then /^I should see "([^\"]*)" in the main content area$/ do |stuff|
|
|||
within("#stream") do
|
||||
Then "I should see #{stuff}"
|
||||
end
|
||||
end
|
||||
|
||||
When /^I wait for the home page to load$/ do
|
||||
wait_until { current_path == root_path }
|
||||
end
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
@aspects @javascript
|
||||
Feature: User creates an aspect
|
||||
In order to share with a limited group
|
||||
As a User
|
||||
I want to create a new aspect
|
||||
|
||||
Background:
|
||||
Given I am signed in
|
||||
And I follow "Manage" in the header
|
||||
And I follow "Add a new aspect"
|
||||
|
||||
Scenario: success
|
||||
Given I fill in "Name" with "Dorm Mates" in the modal window
|
||||
When I press "Create" in the modal window
|
||||
Then I should see "Dorm Mates" in the header
|
||||
And I should see "Your aspect 'Dorm Mates' is empty."
|
||||
|
||||
Scenario: I omit the name
|
||||
Given I fill in "Name" with "" in the modal window
|
||||
When I press "Create" in the modal window
|
||||
Then I should see "Aspect creation failed."
|
||||
|
|
@ -17,12 +17,12 @@ module PhotoMover
|
|||
current_photo_location = "#{Rails.root}/public/uploads/images/#{photo.image_filename}"
|
||||
new_photo_location = "#{album_dir}/#{photo.image_filename}"
|
||||
|
||||
`cp #{current_photo_location} #{new_photo_location}`
|
||||
FileUtils::cp current_photo_location new_photo_location
|
||||
end
|
||||
end
|
||||
|
||||
`tar cf #{user.id}.tar #{user.id}`
|
||||
`rm -r #{user.id}`
|
||||
system("tar", "cf #{user.id}.tar #{user.id}")
|
||||
FileUtils::rm_r user.id, :secure => true, :force => true
|
||||
|
||||
"#{Rails.root}/#{temp_dir}.tar"
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue