File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,9 @@ def verified_install(backend, path)
8282 fld = FakeLibDir . new
8383 backend = fld . backend
8484 cpp_lib_path = sampleproj_path + "DoSomething"
85- cpp_library = verified_install ( backend , cpp_lib_path )
85+
86+ around ( :example ) { |example | fld . in_pristine_fake_libraries_dir ( example ) }
87+ before ( :each ) { @cpp_library = verified_install ( backend , cpp_lib_path ) }
8688
8789 # the keys are the methods of cpp_library to call
8890 # the results are what we expect to see based on the config we loaded
@@ -95,7 +97,7 @@ def verified_install(backend, path)
9597
9698 methods_and_results . each do |m , expected |
9799 it "Creates #{ m } from config" do
98- expect ( expected ) . to eq ( cpp_library . send ( m , bogo_config ) )
100+ expect ( expected ) . to eq ( @ cpp_library. send ( m , bogo_config ) )
99101 end
100102 end
101103
You can’t perform that action at this time.
0 commit comments