mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 13:16:09 +10:00
21 lines
522 B
Ruby
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
|