Fix some tests. Use travis-ci 1.9.2

This commit is contained in:
Dmitriy Zaporozhets 2013-01-05 00:43:32 +02:00
parent e16cebac3e
commit 9a88e4d184
7 changed files with 10 additions and 36 deletions

View file

@ -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