Fix some tests. Use travis-ci 1.9.2
This commit is contained in:
parent
e16cebac3e
commit
9a88e4d184
7 changed files with 10 additions and 36 deletions
|
@ -22,10 +22,10 @@ describe "Application access" do
|
|||
|
||||
before do
|
||||
# full access
|
||||
project.users_projects.create(user: master, project_access: UsersProject::MASTER)
|
||||
project.team << [master, :master]
|
||||
|
||||
# readonly
|
||||
project.users_projects.create(user: reporter, project_access: UsersProject::REPORTER)
|
||||
project.team << [reporter, :reporter]
|
||||
end
|
||||
|
||||
describe "GET /project_code" do
|
||||
|
@ -62,7 +62,7 @@ describe "Application access" do
|
|||
end
|
||||
|
||||
describe "GET /project_code/commit/:sha" do
|
||||
subject { project_commit_path(project, project.commit) }
|
||||
subject { project_commit_path(project, project.repository.commit) }
|
||||
|
||||
it { should be_allowed_for master }
|
||||
it { should be_allowed_for reporter }
|
||||
|
@ -107,7 +107,7 @@ describe "Application access" do
|
|||
|
||||
describe "GET /project_code/blob" do
|
||||
before do
|
||||
commit = project.commit
|
||||
commit = project.repository.commit
|
||||
path = commit.tree.contents.select { |i| i.is_a?(Grit::Blob)}.first.name
|
||||
@blob_path = project_blob_path(project, File.join(commit.id, path))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue