summaryrefslogtreecommitdiff
path: root/features/steps/admin/settings.rb
blob: c2d0d2a3fa35ca17eace300b9ee3b509a417322a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class Spinach::Features::AdminSettings < Spinach::FeatureSteps
  include SharedAuthentication
  include SharedPaths
  include SharedAdmin
  include Gitlab::CurrentSettings

  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 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