Rspec environmental Variable
By Jiazhen Xie | 13 October 2013
Tags: ruby, testing, rspec
What is Environment Variable? > Environment variables are variables passed to programs by the command line or the graphical shell. Though there are a number of environment variables that only affect the command line or graphical shell itself (such as PATH or HOME), there are also several that directly affect how Ruby scripts execute. How to use it? For example, in your spec, add a code: Then in the command line, use: Variable will now be assigned to 1000.
← Back to Home