lib/rib/test.rb in rib-1.5.0 vs lib/rib/test.rb in rib-1.5.1
- old
+ new
@@ -9,11 +9,15 @@
copy :rib do
after do
Muack.verify
end
- def new_shell
- Rib::Shell.new(:binding => Object.new.instance_eval{binding}).before_loop
+ def new_shell opts={}
+ shell = Rib::Shell.new(
+ {:binding => Object.new.instance_eval{binding}}.merge(opts)
+ )
+ yield(shell) if block_given?
+ shell.before_loop
end
singleton_class.module_eval do
def test_for *plugins, &block
require 'rib/all' # exhaustive tests