ssh_access_controller_spec.rb revision 770b1cbc08153828735085b08c04d3211de54cd9
require 'spec_helper'
let(:repository) { create :repository }
before do
get :index, repository_id: repository.to_param, key_id: nil, permission: 'write'
end
it { should respond_with :success }
end
end
before do
get :index, repository_id: repository.to_param, key_id: key.id.to_s, permission: 'write'
end
it { should respond_with :success }
end
end
end
before do
get :index, repository_id: repository.to_param, key_id: key.id.to_s, permission: 'read'
end
it { should respond_with :success }
end
end
end
let(:repository) { create :repository, source_address: 'http://some_source_address.example.com', source_type: 'git' }
before do
get :index, repository_id: repository.to_param, key_id: key.id.to_s, permission: 'write'
end
it { should respond_with :success }
end
end
end
end