Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiro Santillli <ciro.santilli@gmail.com>2014-02-23 13:04:56 +0400
committerCiro Santillli <ciro.santilli@gmail.com>2014-02-23 13:34:39 +0400
commit170340e6b15f91e79cf683c892ec887c3115b317 (patch)
tree19cf1f82b08201295b3e66170a967e813c522189 /features/steps/project/project_hooks.rb
parente868de687da060a109bd67fd492ed110eb134d47 (diff)
Remove dir prefix and suffix from tests inside dir.
Diffstat (limited to 'features/steps/project/project_hooks.rb')
-rw-r--r--features/steps/project/project_hooks.rb38
1 files changed, 0 insertions, 38 deletions
diff --git a/features/steps/project/project_hooks.rb b/features/steps/project/project_hooks.rb
deleted file mode 100644
index 19ff3244543..00000000000
--- a/features/steps/project/project_hooks.rb
+++ /dev/null
@@ -1,38 +0,0 @@
-require 'webmock'
-
-class ProjectHooks < Spinach::FeatureSteps
- include SharedAuthentication
- include SharedProject
- include SharedPaths
- include RSpec::Matchers
- include RSpec::Mocks::ExampleMethods
- include WebMock::API
-
- Given 'project has hook' do
- @hook = create(:project_hook, project: current_project)
- end
-
- Then 'I should see project hook' do
- page.should have_content @hook.url
- end
-
- When 'I submit new hook' do
- @url = Faker::Internet.uri("http")
- fill_in "hook_url", with: @url
- expect { click_button "Add Web Hook" }.to change(ProjectHook, :count).by(1)
- end
-
- Then 'I should see newly created hook' do
- page.current_path.should == project_hooks_path(current_project)
- page.should have_content(@url)
- end
-
- When 'I click test hook button' do
- stub_request(:post, @hook.url).to_return(status: 200)
- click_link 'Test Hook'
- end
-
- Then 'hook should be triggered' do
- page.current_path.should == project_hooks_path(current_project)
- end
-end