require 'spec_helper'
before do
end
it { should respond_with :success }
end
end
before { sign_in other_user }
it { should respond_with :success }
end
end
it { should respond_with :success }
end
end
end
before do
repository.access = 'private_rw'
end
it { should respond_with :success }
end
end
before { sign_in other_user }
it { should respond_with :found }
it { should redirect_to root_path }
end
end
end
it { should respond_with :found }
it { should redirect_to root_path }
end
end
end
end
end