magellan-cli 0.2.13 → 0.2.14
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/resources/team.rb +2 -2
- data/lib/magellan/cli/version.rb +1 -1
- data/spec/magellan/cli/resources/team_spec.rb +4 -4
- 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: 421440e81cdb0cf9f8bbbf55ba2b336f8e1ec571
|
4
|
+
data.tar.gz: 2d6f67025f452b2d69e2ab42ff213c4c8568628f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 723fc9cc0f8a7c934a523be52e8bd63e724da6909babc4b85c487cc28af70eeeec7ff6b94435f82e3617db2d6bdfef49c897cc5227a4714143c2cd9defc12f54
|
7
|
+
data.tar.gz: 878793f2f9a9d4c050bf9196e27dc7c3e9ecd19d8e54a4e487fb16da55f9ccea3c5b6ca84f406fe524ee8e82a8f822c31a617cfd334a250db7e3e47eadbe2b5d
|
data/Gemfile.lock
CHANGED
@@ -12,8 +12,8 @@ module Magellan
|
|
12
12
|
|
13
13
|
desc "create NAME ROLE", "create Team with NAME ROLE"
|
14
14
|
def create(name, role)
|
15
|
-
unless %w{
|
16
|
-
raise "ROLE should be '
|
15
|
+
unless %w{ reader admin }.include?(role)
|
16
|
+
raise "ROLE should be 'reader' or 'admin'"
|
17
17
|
end
|
18
18
|
o = load_selection(Organization.parameter_name)
|
19
19
|
params = {
|
data/lib/magellan/cli/version.rb
CHANGED
@@ -26,8 +26,8 @@ describe Magellan::Cli::Resources::Team do
|
|
26
26
|
allow(cmd).to receive(:get_json).with(any_args).and_return(team_list_response)
|
27
27
|
allow(cmd).to receive(:get_json).with(any_args).and_return(team_list_response)
|
28
28
|
end
|
29
|
-
context "role=
|
30
|
-
let(:role){ "
|
29
|
+
context "role=reader" do
|
30
|
+
let(:role){ "reader" }
|
31
31
|
it do
|
32
32
|
cmd.create("team1", role)
|
33
33
|
end
|
@@ -40,8 +40,8 @@ describe Magellan::Cli::Resources::Team do
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
describe :error do
|
43
|
-
context "role=
|
44
|
-
let(:role){ "
|
43
|
+
context "role=owner" do
|
44
|
+
let(:role){ "owner" }
|
45
45
|
it do
|
46
46
|
expect{
|
47
47
|
cmd.create("team1", role)
|