R
Robert Evans
Hi,
I am running unit tests that test the assignment of a constant value
in a "config" file that is actually ruby code, e.g.
VARIABLE="somevalue"
On subsequent test methods in my unit test, I get a complaint that it
is already assigned.
setup
load const
end
def test_1
do something
end
def test_2
do something else
end
test 2 gets a warning that const has already been defined.
I expected the unit test to clean the environment, in lieu of that,
how can I undefined const?
Thanks,
Bob
I am running unit tests that test the assignment of a constant value
in a "config" file that is actually ruby code, e.g.
VARIABLE="somevalue"
On subsequent test methods in my unit test, I get a complaint that it
is already assigned.
setup
load const
end
def test_1
do something
end
def test_2
do something else
end
test 2 gets a warning that const has already been defined.
I expected the unit test to clean the environment, in lieu of that,
how can I undefined const?
Thanks,
Bob