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-08 20:53:35 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-08 20:53:35 +0300
commit57a65ede77b7bbae6e3b2a7aa52135de7b0c2f8e (patch)
tree3f1d72a04c3deefb8a911d013e686b036541af60 /features/steps/admin
parent8589b4e137f50293952923bb07e2814257d7784d (diff)
Improve application settings and write tests
Diffstat (limited to 'features/steps/admin')
-rw-r--r--features/steps/admin/settings.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/features/steps/admin/settings.rb b/features/steps/admin/settings.rb
new file mode 100644
index 00000000000..e8168e85def
--- /dev/null
+++ b/features/steps/admin/settings.rb
@@ -0,0 +1,16 @@
+class Spinach::Features::AdminSettings < Spinach::FeatureSteps
+ include SharedAuthentication
+ include SharedPaths
+ include SharedAdmin
+ include Gitlab::CurrentSettings
+
+ step 'I disable gravatars and save form' do
+ uncheck 'Gravatar enabled'
+ click_button 'Save'
+ end
+
+ step 'I should be see gravatar disabled' do
+ current_application_settings.gravatar_enabled.should be_false
+ page.should have_content 'Application settings saved successfully'
+ end
+end