class Producer::Core::Tests::HasEnv

Public Instance Methods

verify() click to toggle source
# File lib/producer/core/tests/has_env.rb, line 5
def verify
  case arguments.size
    when 1 then remote.environment.key? key
    when 2 then remote.environment[key] == arguments.last
  end
end

Private Instance Methods

key() click to toggle source
# File lib/producer/core/tests/has_env.rb, line 14
def key
  arguments.first.to_s.upcase
end