Sha256: ce42bd74b2e4096d2caa3c9be179e4945d9bfe11aa49fa08dcd355b36f97460c
Contents?: true
Size: 496 Bytes
Versions: 36
Compression:
Stored size: 496 Bytes
Contents
require "rspec/expectations" require "spec/support/platform_helpers" RSpec::Matchers.define :match_environment_variable do |varname| match do |actual| expected = if windows? && ENV[varname].nil? # On Windows, if an environment variable is not set, the command # `echo %VARNAME%` outputs %VARNAME% "%#{varname}%" else ENV[varname].to_s end actual == expected end end
Version data entries
36 entries across 36 versions & 2 rubygems