Sha256: 633f74fec5d2af57fbbfd06fa4ff44e48b1ed1d80d2854b8af9a8afaa7716613
Contents?: true
Size: 479 Bytes
Versions: 43
Compression:
Stored size: 479 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
43 entries across 43 versions & 1 rubygems