Ruby is telling you that it found an Insurance
, but it is not a module.
Perhaps you already have defined an Insurance
class?
Depending on the surrounding code it might help if you “reset” the namespace by prepending a double colon:
broker = ::Insurance::Broker::FakeBroker.new(1234,1234)