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
judithroth committed Mar 22, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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)

0 comments on commit dbaaece

Please sign in to comment.