spec/main_spec.rb in sickle-0.5.2 vs spec/main_spec.rb in sickle-0.5.3
- old
+ new
@@ -81,6 +81,18 @@
it "should be 127 if command was not found" do
system "spec/test_run.rb i-do-not-exist"
$?.wont_equal 127
end
end
+
+ describe "before block" do
+ it "should set $verbose to false" do
+ App.run (%w(test-option))
+ $verbose.must_equal false
+ end
+
+ it "should set $verbose to true" do
+ App.run(%w(test-option --verbose))
+ $verbose.must_equal true
+ end
+ end
end