I’m using this:
4.times { |i| assert_not_equal("content#{i + 2}".constantize, object.first_content) }
and i have previously declared local variables
content1
content2
content3
content4
content5
the error I get
NameError: wrong constant name content2
Whot does this error mean? I’m pretty sure that I want content2 =\
You have to call ruby constants with a big letter:
Content2instead ofcontent2.Link
It should be noted though that there is no such thing as constant variables, but constant values.