Files
gitlabhq/features/steps/admin/git_hooks.rb
T
2015-03-26 13:38:26 +02:00

21 lines
522 B
Ruby

require 'webmock'
class Spinach::Features::AdminGitHooksSample < Spinach::FeatureSteps
include SharedAuthentication
include SharedProject
include SharedPaths
include RSpec::Matchers
include RSpec::Mocks::ExampleMethods
include WebMock::API
step 'I fill in a form and submit' do
fill_in "Commit message", with: "my_string"
click_button "Save Git hooks"
end
step 'I see my git hook saved' do
visit admin_git_hooks_path
expect(page).to have_selector("input[value='my_string']")
end
end