magellan-cli 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/magellan/cli/base.rb +1 -1
- data/lib/magellan/cli/version.rb +1 -1
- data/spec/magellan/cli/resources/organization_spec.rb +13 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bab0dd77260b7d366397bd02fb6f4766b4ba7f47
|
4
|
+
data.tar.gz: 152e8e61b2bcdac3c7dc7fe1fe27e8a1688a67f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b4c3d9947f0f1ddf908e590292578c6710f00cfff5090e9dcf9abcbf4a057d4fabd947a6c0480e77a4877be67fbf139cf54d74be9199542ecdcc86baa761af4
|
7
|
+
data.tar.gz: 0404b4013395496b738756d993c63f2e94c9deb72850d51128547b80d7afb9b419897bdd3eac96119209cee3fe80a0b6b2aabff6c42572e843174fd0d6a4cb31
|
data/Gemfile.lock
CHANGED
data/lib/magellan/cli/base.rb
CHANGED
data/lib/magellan/cli/version.rb
CHANGED
@@ -29,4 +29,17 @@ describe Magellan::Cli::Resources::Organization do
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
+
describe :delete do
|
33
|
+
let(:org_id){ 5 }
|
34
|
+
let(:org_name){ "org5" }
|
35
|
+
let(:organization_list_response) { [ { "id" => org_id, "name" => org_name } ] }
|
36
|
+
before do
|
37
|
+
allow(http_conn).to receive(:get_json).with("/admin/magellan~auth~organization.json", {"f[name][2][o]"=>"is", "f[name][2][v]"=> org_name}).and_return(organization_list_response)
|
38
|
+
allow(http_conn).to receive(:delete).with("/admin/magellan~auth~organization/5/delete")
|
39
|
+
end
|
40
|
+
it do
|
41
|
+
cmd.delete(org_name)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
32
45
|
end
|