Sha256: cd5b4fbbed626e3d015f28b78c3d1618851bd2ad90eb407d9dfb308a928f424f
Contents?: true
Size: 413 Bytes
Versions: 6
Compression:
Stored size: 413 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
6 entries across 6 versions & 1 rubygems