These are chat archives for dry-rb/chat
_container’s got a different object_id for each example. Must be something else.
falsefor my dependency in the new spec example I’ve added.
% echo "class Foo;end" > foo.rb % irb irb(main):001:0> require "./foo" => true irb(main):002:0> Foo.new => #<Foo:0x007f885a02ea60> irb(main):003:0> Object.send(:remove_const, :Foo) => Foo irb(main):004:0> Foo.new NameError: uninitialized constant Foo from (irb):4 from /Users/tim/.rbenv/versions/2.3.0/bin/irb:11:in `<main>' irb(main):005:0> require "./foo" => false irb(main):006:0> Foo.new NameError: uninitialized constant Foo from (irb):6 from /Users/tim/.rbenv/versions/2.3.0/bin/irb:11:in `<main>' irb(main):007:0>
include Import['…']inside of it, and my change is one that sees imported containers get imported when doing that include, which means that my new fixture importable container gets imported by the existing spec with
include Import[…], which causes the imported container’s constants to be removed, and then fail to be preoprly re-required/loaded for my new spec example
load './foo', it forces the reload, without touching