diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-08 09:53:35 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-08 09:53:35 -0800 |
commit | 57a65ede77b7bbae6e3b2a7aa52135de7b0c2f8e (patch) | |
tree | 3f1d72a04c3deefb8a911d013e686b036541af60 /features/steps/admin/settings.rb | |
parent | 8589b4e137f50293952923bb07e2814257d7784d (diff) | |
download | gitlab-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.rb | 16 |
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 |