Module: IRB::ExtendCommandBundle
- Defined in:
- lib/interactive_rspec/monkey/irb.rb
Instance Method Summary collapse
Instance Method Details
#irspec(specs = nil) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/interactive_rspec/monkey/irb.rb', line 28 def irspec(specs = nil) #TODO check if already in irspec InteractiveRspec.configure if specs InteractiveRspec.switch_rails_env do InteractiveRspec.run_specs specs end else InteractiveRspec.switch_rspec_mode do InteractiveRspec.switch_rails_env do # pushws InteractiveRspec.new_extended_example_group irb InteractiveRspec.new_extended_example_group end end end RSpec.reset nil end |