cf 0.6.1.rc14 → 0.6.1.rc15

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,6 +31,8 @@ module CF::Organization
31
31
  line
32
32
  line c(boom.description, :bad)
33
33
  line c("If you want to delete the organization along with all dependent objects, rerun the command with the #{b("'--recursive'")} flag.", :bad)
34
+ exit_status(1)
35
+ return
34
36
  end
35
37
 
36
38
  if client.organizations.size == 1
@@ -34,7 +34,7 @@ module CF::Space
34
34
  space.delete!
35
35
  end
36
36
  end
37
- rescue CFoundry::APIError => boom
37
+ rescue CFoundry::AssociationNotEmpty => boom
38
38
  line
39
39
  line c(boom.description, :bad)
40
40
  line c("If you want to delete the space along with all dependent objects, rerun the command with the #{b("'--recursive'")} flag.", :bad)
@@ -1,3 +1,3 @@
1
1
  module CF
2
- VERSION = "0.6.1.rc14".freeze
2
+ VERSION = "0.6.1.rc15".freeze
3
3
  end
@@ -75,6 +75,10 @@ describe CF::Organization::Delete do
75
75
  it "informs the user of how to recursively delete" do
76
76
  expect(output).to say "If you want to delete the organization along with all dependent objects, rerun the command with the '--recursive' flag."
77
77
  end
78
+
79
+ it "returns a non-zero exit code" do
80
+ @status.should_not == 0
81
+ end
78
82
  end
79
83
 
80
84
  context "when deleting with --recursive" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1.rc14
4
+ version: 0.6.1.rc15
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -531,7 +531,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
531
531
  version: '0'
532
532
  segments:
533
533
  - 0
534
- hash: 255382247514781003
534
+ hash: 2152463802947033801
535
535
  required_rubygems_version: !ruby/object:Gem::Requirement
536
536
  none: false
537
537
  requirements: