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
path: root/spec
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-09-28 00:52:08 +0400
committerrandx <dmitriy.zaporozhets@gmail.com>2012-09-28 00:52:08 +0400
commitdb69836319ebf716b31f52e818605df0816790e0 (patch)
tree3edda28472b9c20e5fdd1c7f4a25d42d171c1814 /spec
parent9cabe04368024f44881e4269a008156f1629ab86 (diff)
Move ProjectHooks from spec/requests to spinach
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/hooks_spec.rb43
1 files changed, 0 insertions, 43 deletions
diff --git a/spec/requests/hooks_spec.rb b/spec/requests/hooks_spec.rb
deleted file mode 100644
index 7cfe7cfe849..00000000000
--- a/spec/requests/hooks_spec.rb
+++ /dev/null
@@ -1,43 +0,0 @@
-require 'spec_helper'
-
-describe "Hooks" do
- before do
- login_as :user
- @project = Factory :project
- @project.add_access(@user, :read, :admin)
- end
-
- describe "GET index" do
- it "should be available" do
- @hook = Factory :project_hook, project: @project
- visit project_hooks_path(@project)
- page.should have_content "Hooks"
- page.should have_content @hook.url
- end
- end
-
- describe "New Hook" do
- before do
- @url = Faker::Internet.uri("http")
- visit project_hooks_path(@project)
- fill_in "hook_url", with: @url
- expect { click_button "Add Web Hook" }.to change(ProjectHook, :count).by(1)
- end
-
- it "should open new team member popup" do
- page.current_path.should == project_hooks_path(@project)
- page.should have_content(@url)
- end
- end
-
- describe "Test" do
- before do
- @hook = Factory :project_hook, project: @project
- stub_request(:post, @hook.url)
- visit project_hooks_path(@project)
- click_link "Test Hook"
- end
-
- it { page.current_path.should == project_hooks_path(@project) }
- end
-end