mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 21:56:19 +10:00
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: app/controllers/projects/team_members_controller.rb app/finders/projects_finder.rb app/models/group.rb app/models/project_team.rb app/models/users_group.rb config/gitlab.yml.example config/initializers/1_settings.rb config/routes.rb db/schema.rb doc/integration/ldap.md features/steps/group.rb features/steps/project/project.rb
28 lines
743 B
Ruby
28 lines
743 B
Ruby
class Spinach::Features::User < Spinach::FeatureSteps
|
|
include SharedAuthentication
|
|
include SharedPaths
|
|
include SharedUser
|
|
include SharedProject
|
|
|
|
step 'I should see user "John Doe" page' do
|
|
expect(title).to match(/^\s*John Doe/)
|
|
end
|
|
|
|
step 'I visit unsubscribe link' do
|
|
email = Base64.urlsafe_encode64("joh@doe.org")
|
|
visit "/unsubscribes/#{email}"
|
|
end
|
|
|
|
step 'I should see unsubscribe text and button' do
|
|
page.should have_content "Unsubscribe from Admin notifications Yes, I want to unsubscribe joh@doe.org from any further admin emails."
|
|
end
|
|
|
|
step 'I press the unsubscribe button' do
|
|
click_button("Unsubscribe")
|
|
end
|
|
|
|
step 'I should be unsubscribed' do
|
|
current_path.should == root_path
|
|
end
|
|
end
|