| |   |
| 25 | 25 | |
| 26 | 26 | it "has a query_url" do |
| 27 | 27 | 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" |
| 29 | 29 | client.query_url.should == exp_url |
| 30 | 30 | end |
| 31 | 31 | |
| … | … | |
| 33 | 33 | client = Gitorious::SSH::Client.new(@strainer, "johan") |
| 34 | 34 | connection_stub = mock("connection_stub", :null_object => true) |
| 35 | 35 | 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") \ |
| 37 | 37 | .and_return(@ok_stub) |
| 38 | 38 | client.should_receive(:connection).and_return(connection_stub) |
| 39 | 39 | |
| … | … | |
| 44 | 44 | client = Gitorious::SSH::Client.new(@strainer, "johan") |
| 45 | 45 | connection_stub = mock("connection stub", :null_object => true) |
| 46 | 46 | 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") \ |
| 48 | 48 | .and_return(@not_ok_stub) |
| 49 | 49 | client.should_receive(:connection).and_return(connection_stub) |
| 50 | 50 | |
| toggle raw diff |
--- a/spec/lib/gitorious/ssh/client_spec.rb
+++ b/spec/lib/gitorious/ssh/client_spec.rb
@@ -25,7 +25,7 @@ describe Gitorious::SSH::Client do
it "has a query_url" do
client = Gitorious::SSH::Client.new(@strainer, "johan")
- exp_url = "/p/foo/repos/bar/writable_by?username=johan"
+ exp_url = "/projects/foo/repos/bar/writable_by?username=johan"
client.query_url.should == exp_url
end
@@ -33,7 +33,7 @@ describe Gitorious::SSH::Client do
client = Gitorious::SSH::Client.new(@strainer, "johan")
connection_stub = mock("connection_stub", :null_object => true)
connection_stub.should_receive(:get) \
- .with("/p/foo/repos/bar/writable_by?username=johan") \
+ .with("/projects/foo/repos/bar/writable_by?username=johan") \
.and_return(@ok_stub)
client.should_receive(:connection).and_return(connection_stub)
@@ -44,7 +44,7 @@ describe Gitorious::SSH::Client do
client = Gitorious::SSH::Client.new(@strainer, "johan")
connection_stub = mock("connection stub", :null_object => true)
connection_stub.should_receive(:get) \
- .with("/p/foo/repos/bar/writable_by?username=johan") \
+ .with("/projects/foo/repos/bar/writable_by?username=johan") \
.and_return(@not_ok_stub)
client.should_receive(:connection).and_return(connection_stub)
|