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)
82
82
fld = FakeLibDir . new
83
83
backend = fld . backend
84
84
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 ) }
86
88
87
89
# the keys are the methods of cpp_library to call
88
90
# the results are what we expect to see based on the config we loaded
@@ -95,7 +97,7 @@ def verified_install(backend, path)
95
97
96
98
methods_and_results . each do |m , expected |
97
99
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 ) )
99
101
end
100
102
end
101
103
You can’t perform that action at this time.
0 commit comments