Skip to content
This repository was archived by the owner on May 12, 2018. It is now read-only.

Commit da00c0e

Browse files
committed
Use demo server for real testing
1 parent a464b07 commit da00c0e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def authenticate_user!
2727

2828
def authenticate_token!
2929
unless project.valid_token?(params[:token])
30-
return page_404
30+
return head(403)
3131
end
3232
end
3333

spec/factories/projects.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
FactoryGirl.define do
44
factory :project_without_token, class: Project do
5-
name Faker::Name.name
5+
name 'GitLab / gitlab-shell'
66
default_ref 'master'
7-
gitlab_url 'https://dev.gitlab.org/gitlab/six.git'
8-
ssh_url_to_repo 'git@dev.gitlab.org:gitlab/six.git'
9-
gitlab_id 45
7+
gitlab_url 'http://demo.gitlabhq.com/gitlab/gitlab-shell'
8+
ssh_url_to_repo 'git@demo.gitlab.com:gitlab/gitlab-shell.git'
9+
gitlab_id 8
1010
scripts 'ls'
1111

1212
factory :project do

spec/features/projects_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
visit projects_path
1212
end
1313

14-
it { page.should have_content 'GitLab / gitlabhq' }
14+
it { page.should have_content @project.name }
1515
end
1616

1717
describe "GET /projects/:id" do

0 commit comments

Comments
 (0)