Fix not implemented error by using double

MSP-13484
This commit is contained in:
Luke Imhoff 2015-10-21 08:02:09 -05:00 committed by Brent Cook
parent 337be4355d
commit 64a870aac0
1 changed files with 2 additions and 2 deletions

View File

@ -71,9 +71,9 @@ RSpec.describe Msf::DataStore do
"foo" => "bar",
"fizz" => "buzz"
}
ini_class = double from_file: ini_instance
ini = stub_const("Rex::Parser::Ini", Class.new)
allow(ini).to receive(:from_file).and_return(ini_instance)
stub_const("Rex::Parser::Ini", ini_class)
s = described_class.new
s.from_file("path")