lib/spec_helper.rb in streamdal-0.0.3 vs lib/spec_helper.rb in streamdal-0.0.4

- old
+ new

@@ -1,2 +1,12 @@ require 'simplecov' -SimpleCov.start \ No newline at end of file +SimpleCov.start + +# This environment variable exists so that we can run WASM tests +# via the CI process for libs/wasm* and not just through the CI +# of the ruby-sdk +WASM_DIR = ENV['WASM_DIR'] || File.join(File.dirname(__FILE__), '..', 'test-assets', 'wasm') + +# Load the WebAssembly module +def load_wasm(name) + File.read(File.join(WASM_DIR, name)) +end