Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-17 03:09:20 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-17 03:09:20 +0300
commite7f772550c5fad5761777b76f97726be84693746 (patch)
tree0f24af28fd7167066b77a15a4e7c454fbde215a8 /features/steps/admin
parent41d7be3ce1ae9a4bff93b62322f35989b6ad4cf6 (diff)
Add tests to home page url redirect
Diffstat (limited to 'features/steps/admin')
-rw-r--r--features/steps/admin/settings.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/features/steps/admin/settings.rb b/features/steps/admin/settings.rb
index e8168e85def..c2d0d2a3fa3 100644
--- a/features/steps/admin/settings.rb
+++ b/features/steps/admin/settings.rb
@@ -4,13 +4,15 @@ class Spinach::Features::AdminSettings < Spinach::FeatureSteps
include SharedAdmin
include Gitlab::CurrentSettings
- step 'I disable gravatars and save form' do
+ step 'I modify settings and save form' do
uncheck 'Gravatar enabled'
+ fill_in 'Home page url', with: 'https://about.gitlab.com/'
click_button 'Save'
end
- step 'I should be see gravatar disabled' do
+ step 'I should see application settings saved' do
current_application_settings.gravatar_enabled.should be_false
+ current_application_settings.home_page_url.should == 'https://about.gitlab.com/'
page.should have_content 'Application settings saved successfully'
end
end