gitlab-org--gitlab-foss/features/steps/admin/settings.rb

19 lines
626 B
Ruby
Raw Normal View History

class Spinach::Features::AdminSettings < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedAdmin
include Gitlab::CurrentSettings
2015-01-16 19:09:20 -05:00
step 'I modify settings and save form' do
uncheck 'Gravatar enabled'
2015-01-16 19:09:20 -05:00
fill_in 'Home page url', with: 'https://about.gitlab.com/'
click_button 'Save'
end
2015-01-16 19:09:20 -05:00
step 'I should see application settings saved' do
current_application_settings.gravatar_enabled.should be_false
2015-01-16 19:09:20 -05:00
current_application_settings.home_page_url.should == 'https://about.gitlab.com/'
page.should have_content 'Application settings saved successfully'
end
end