magellan-cli 0.7.6 → 0.7.7
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/base.rb +1 -0
- data/lib/magellan/cli/version.rb +1 -1
- data/spec/magellan/cli/resources/project_spec.rb +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 016146efdc342a98f2297f442fa7c34d7ce49c3d
|
4
|
+
data.tar.gz: b53cc0168ff9fb5238864c5ae6264d32a5ab1e04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fcd9f07e89954c33fd96bd06795362d2d34774a5fcf3b4b5766a6199818fb095ec63a04d0ef32b10f86d81e21557e5df2ee82907a9ee9d342a2d22f481b06be
|
7
|
+
data.tar.gz: 51ce3c723a3edcdabd9b7a7cea2fb1bdb4eb58beb0eec1131e5428956bcfff194c4182baffbeb781e8e9e2ecf6d9ea9a0a6aa1ebc4937d74f7579019621f4720
|
data/Gemfile.lock
CHANGED
data/lib/magellan/cli/version.rb
CHANGED
@@ -55,6 +55,15 @@ describe Magellan::Cli::Resources::Project do
|
|
55
55
|
expect($stdout).to receive(:puts)
|
56
56
|
cmd.show(1)
|
57
57
|
end
|
58
|
+
|
59
|
+
it "not authorized" do
|
60
|
+
allow(res).to receive(:body).and_return('{"message":"You are not authorized to access this page."}')
|
61
|
+
allow(res).to receive(:status).and_return(404)
|
62
|
+
expect(httpclient).to receive(:get).with("#{base_url}/admin/project/1.json").and_return(res)
|
63
|
+
expect{
|
64
|
+
cmd.show(1)
|
65
|
+
}.to raise_error(Magellan::Cli::Error, "You are not authorized to access this project.")
|
66
|
+
end
|
58
67
|
end
|
59
68
|
|
60
69
|
describe :delete do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magellan-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akm2000
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|