Conflicts: app/controllers/aspects_controller.rb app/controllers/contacts_controller.rb app/controllers/people_controller.rb app/controllers/photos_controller.rb app/controllers/tags_controller.rb app/helpers/notifications_helper.rb app/models/notifications/new_request.rb app/models/user_preference.rb public/javascripts/view.js spec/controllers/aspects_controller_spec.rb spec/controllers/contacts_controller_spec.rb spec/controllers/home_controller_spec.rb spec/controllers/post_visibilities_controller_spec.rb spec/controllers/requests_controller_spec.rb spec/mailers/notifier_spec.rb spec/models/user_spec.rb
59 lines
1.8 KiB
Gherkin
59 lines
1.8 KiB
Gherkin
@javascript
|
|
Feature: disconnecting users
|
|
In order to deal with life
|
|
As a User
|
|
I want to be able to disconnect from others
|
|
|
|
Background:
|
|
Given a user with email "bob@bob.bob"
|
|
And a user with email "alice@alice.alice"
|
|
When I sign in as "bob@bob.bob"
|
|
And I am on "alice@alice.alice"'s page
|
|
|
|
And I add the person to my 1st aspect
|
|
|
|
Scenario: remove non-mutual contact from the contact show page
|
|
When I am on "alice@alice.alice"'s page
|
|
|
|
And I remove the person from my 1st aspect
|
|
And I am on the home page
|
|
|
|
Then I should see "no contacts" within "#sharers"
|
|
|
|
Then I go to the destroy user session page
|
|
When I sign in as "alice@alice.alice"
|
|
And I am on "bob@bob.bob"'s page
|
|
|
|
Then I should not see "is sharing with you."
|
|
|
|
Scenario Outline: remove a non-mutual contact from the last aspect on the contact show page
|
|
When I am on "alice@alice.alice"'s page
|
|
|
|
And I remove the person from my 1st aspect
|
|
|
|
And I am on the manage aspects page
|
|
Then I should see no contacts in "Besties"
|
|
|
|
Then I go to the destroy user session page
|
|
When I sign in as "alice@alice.alice"
|
|
And I am on "bob@bob.bob"'s page
|
|
|
|
Then I should not see "is sharing with you."
|
|
|
|
Scenario: remove a non-mutual contact from the aspect edit page
|
|
When I go to the home page
|
|
And I press the first ".contact-count" within "#aspect_listings"
|
|
|
|
And I wait for the ajax to finish
|
|
And I preemptively confirm the alert
|
|
And I press the first ".added" within "#facebox .contact_list ul > li:first-child"
|
|
|
|
And I wait for the ajax to finish
|
|
And I am on the manage aspects page
|
|
Then I should see no contacts in "Besties"
|
|
|
|
Then I go to the destroy user session page
|
|
When I sign in as "alice@alice.alice"
|
|
And I am on "bob@bob.bob"'s page
|
|
|
|
Then I should not see "is sharing with you."
|