Skip to content

Commit

Permalink
Prevent wall of warnings when using "And console" step (Issue #80)
Browse files Browse the repository at this point in the history
  • Loading branch information
judithroth committed Mar 22, 2019
1 parent ca6aeae commit dbaaece
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/spreewald/development_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
# https://github.com/ruby/ruby/blob/c08f7b80889b531865e74bc5f573df8fa27f2088/lib/irb.rb#L418
# with injected workspace. See https://github.com/makandra/spreewald/issues/77 for reasons.

IRB.setup(nil)
# Don't setup IRB twice to avoid wall of
# "already initialized constant" warnings
unless IRB.conf[:LOAD_MODULES]
IRB.setup(nil)
end

workspace = IRB::WorkSpace.new(binding)
irb = IRB::Irb.new(workspace)
Expand Down

0 comments on commit dbaaece

Please sign in to comment.