Skip to content

Commit 028e581

Browse files
Move Workspace proxy under Seam::Http module (#133)
1 parent 51ab12b commit 028e581

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

lib/seam/http_multi_workspace.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ def request_seam(method, path, config = {})
5454
)
5555
end
5656
end
57-
end
58-
end
5957

60-
class WorkspacesProxy
61-
def initialize(workspaces)
62-
@workspaces = workspaces
63-
end
58+
class WorkspacesProxy
59+
def initialize(workspaces)
60+
@workspaces = workspaces
61+
end
6462

65-
def list(**kwargs)
66-
@workspaces.list(**kwargs)
67-
end
63+
def list(**kwargs)
64+
@workspaces.list(**kwargs)
65+
end
6866

69-
def create(**kwargs)
70-
@workspaces.create(**kwargs)
67+
def create(**kwargs)
68+
@workspaces.create(**kwargs)
69+
end
70+
end
7171
end
7272
end

spec/seam_client/client_multi_workspace_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
describe "#workspaces" do
1919
it "returns a WorkspacesProxy instance" do
20-
expect(client.workspaces).to be_a(WorkspacesProxy)
20+
expect(client.workspaces).to be_a(Seam::Http::WorkspacesProxy)
2121
end
2222

2323
before do

0 commit comments

Comments
 (0)