Commit 5729c0c5fdf272c648318d10e8a8ad318ddc1c95

Use the new project url in the gitorious client as well

Commit diff

lib/gitorious/ssh/client.rb

 
2424 end
2525
2626 def query_url
27 url = ["/p"]
27 url = ["/projects"]
2828 url << @project_name
2929 url << "repos"
3030 url << @repository_name
toggle raw diff

spec/lib/gitorious/ssh/client_spec.rb

 
2525
2626 it "has a query_url" do
2727 client = Gitorious::SSH::Client.new(@strainer, "johan")
28 exp_url = "/p/foo/repos/bar/writable_by?username=johan"
28 exp_url = "/projects/foo/repos/bar/writable_by?username=johan"
2929 client.query_url.should == exp_url
3030 end
3131
3333 client = Gitorious::SSH::Client.new(@strainer, "johan")
3434 connection_stub = mock("connection_stub", :null_object => true)
3535 connection_stub.should_receive(:get) \
36 .with("/p/foo/repos/bar/writable_by?username=johan") \
36 .with("/projects/foo/repos/bar/writable_by?username=johan") \
3737 .and_return(@ok_stub)
3838 client.should_receive(:connection).and_return(connection_stub)
3939
4444 client = Gitorious::SSH::Client.new(@strainer, "johan")
4545 connection_stub = mock("connection stub", :null_object => true)
4646 connection_stub.should_receive(:get) \
47 .with("/p/foo/repos/bar/writable_by?username=johan") \
47 .with("/projects/foo/repos/bar/writable_by?username=johan") \
4848 .and_return(@not_ok_stub)
4949 client.should_receive(:connection).and_return(connection_stub)
5050
toggle raw diff