I'm writing a rspec tests for my controller and i cannot find solution following problem. For one of the edge case tests I need to verify the value of one instance variable. How can i access it without having to define the accessor? By default the usual:
controller.variable.should == '3.15'
doesn't work.
Defining
attr_reader :variable
just to make the tests pass would be silly and i'm sure that there is a more inteligent way.