2015-01-08 12:53:35 -05:00
|
|
|
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
|
2015-01-08 12:53:35 -05:00
|
|
|
uncheck 'Gravatar enabled'
|
2015-01-16 19:09:20 -05:00
|
|
|
fill_in 'Home page url', with: 'https://about.gitlab.com/'
|
2015-01-08 12:53:35 -05:00
|
|
|
click_button 'Save'
|
|
|
|
end
|
|
|
|
|
2015-01-16 19:09:20 -05:00
|
|
|
step 'I should see application settings saved' do
|
2015-01-08 12:53:35 -05:00
|
|
|
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/'
|
2015-01-08 12:53:35 -05:00
|
|
|
page.should have_content 'Application settings saved successfully'
|
|
|
|
end
|
|
|
|
end
|