Files
gitlabhq/features/steps/admin/settings.rb
T
2015-02-26 18:52:35 -08:00

36 lines
993 B
Ruby

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
step 'I set the help text' do
fill_in 'Help text', with: help_text
click_button 'Save'
end
step 'I should see the help text' do
page.should have_content help_text
end
step 'I go to help page' do
visit '/help'
end
def help_text
'For help related to GitLab contact Marc Smith at marc@smith.example or find him in office 42.'
end
end