spec/ui/output_spec.rb in ronin-0.3.0 vs spec/ui/output_spec.rb in ronin-1.0.0.pre1

- old
+ new

@@ -1,29 +1,32 @@ +require 'spec_helper' require 'ronin/ui/output' -require 'spec_helper' - describe UI::Output do it "should be quiet by default" do - UI::Output.should be_quiet + should be_quiet end - it "may become verbose or quiet" do - UI::Output.verbose = true - UI::Output.should be_verbose - UI::Output.should_not be_quiet + it "may become verbose" do + subject.verbose! - UI::Output.verbose = false - UI::Output.should be_quiet - UI::Output.should_not be_verbose + should be_verbose + should_not be_quiet + should_not be_silent end - it "may become silent or quiet" do - UI::Output.silent = false - UI::Output.should be_quiet - UI::Output.should_not be_silent + it "may become quiet" do + subject.quiet! - UI::Output.silent = true - UI::Output.should be_silent - UI::Output.should_not be_quiet + should be_quiet + should_not be_silent + should_not be_verbose + end + + it "may become silent" do + subject.silent! + + should be_silent + should_not be_quiet + should_not be_verbose end end