summaryrefslogtreecommitdiffstats
path: root/spec/unit/application/filebucket.rb
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2009-02-14 14:40:25 +0100
committerBrice Figureau <brice-puppet@daysofwonder.com>2009-02-16 20:12:11 +0100
commit0f43fd6c894dd2be7f08209f28caf34be768f238 (patch)
tree33f55bdd8441992dd46189e08634d21857b72d66 /spec/unit/application/filebucket.rb
parent156fb81ca914f6d697dc2cb81788a1d9ab5a23e4 (diff)
downloadpuppet-0f43fd6c894dd2be7f08209f28caf34be768f238.tar.gz
puppet-0f43fd6c894dd2be7f08209f28caf34be768f238.tar.xz
puppet-0f43fd6c894dd2be7f08209f28caf34be768f238.zip
Move --version handling to Puppet::Application
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'spec/unit/application/filebucket.rb')
-rw-r--r--spec/unit/application/filebucket.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/spec/unit/application/filebucket.rb b/spec/unit/application/filebucket.rb
index 0050183f5..2ddf78d90 100644
--- a/spec/unit/application/filebucket.rb
+++ b/spec/unit/application/filebucket.rb
@@ -25,11 +25,7 @@ describe "Filebucket" do
@filebucket.should respond_to(:restore)
end
- it "should declare a version option" do
- @filebucket.should respond_to(:handle_version)
- end
-
- [:bucket, :debug, :help, :local, :remote, :verbose].each do |option|
+ [:bucket, :debug, :local, :remote, :verbose].each do |option|
it "should declare handle_#{option} method" do
@filebucket.should respond_to("handle_#{option}".to_sym)
end
@@ -40,12 +36,6 @@ describe "Filebucket" do
end
end
- it "should exit after printing the version" do
- @filebucket.stubs(:puts)
-
- lambda { @filebucket.handle_version(nil) }.should raise_error(SystemExit)
- end
-
describe "during setup" do
before :each do