summaryrefslogtreecommitdiff
path: root/features/steps/admin/settings.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-08 09:53:35 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-08 09:53:35 -0800
commit57a65ede77b7bbae6e3b2a7aa52135de7b0c2f8e (patch)
tree3f1d72a04c3deefb8a911d013e686b036541af60 /features/steps/admin/settings.rb
parent8589b4e137f50293952923bb07e2814257d7784d (diff)
downloadgitlab-ce-57a65ede77b7bbae6e3b2a7aa52135de7b0c2f8e.tar.gz
Improve application settings and write tests
Diffstat (limited to 'features/steps/admin/settings.rb')
-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